Skip to content

Commit

Permalink
clean up darker
Browse files Browse the repository at this point in the history
  • Loading branch information
HansVRP committed Jun 17, 2024
1 parent 60cc32a commit ee46130
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Binary file added temp.nc
Binary file not shown.
11 changes: 2 additions & 9 deletions tests/test_openeo_gfmap/test_unit_patch_extractors.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from unittest.mock import MagicMock, patch

import numpy as np
import pytest
import xarray as xr
from pyproj import Transformer

from unittest.mock import MagicMock, patch
from openeo_gfmap.features import PatchFeatureExtractor

LAT_HARMONIZED_NAME = "GEO-LAT"
Expand Down Expand Up @@ -61,8 +58,6 @@ def test_get_latlons_reproject(mock_feature_extractor, mock_data_array):
assert result[0].shape == xx.shape
assert result[1].shape == yy.shape




# test rescaling
def test_rescale_s1_backscatter_valid(mock_feature_extractor, mock_data_array):
Expand Down Expand Up @@ -106,9 +101,7 @@ def test_execute(mock_common_preparations, mock_rescale_s1):
# Mock the cube
data = np.ones((1, 2, 2, 2))
mock_cube = MagicMock()
mock_cube.get_array.return_value = xr.DataArray(
data, dims=["bands", "t", "y", "x"]
)
mock_cube.get_array.return_value = xr.DataArray(data, dims=["bands", "t", "y", "x"])

# Execute the method
result = extractor._execute(mock_cube, {})
Expand Down

0 comments on commit ee46130

Please sign in to comment.