Skip to content

Commit

Permalink
Pushing unit-test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinBabe committed Jun 20, 2024
1 parent e3d20e7 commit 8089efc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/openeo_gfmap/inference/model_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ class ONNXModelInference(ModelInference):
"""

def dependencies(self) -> list:
return [] # Disable dependencies

def output_labels(self) -> list:
return self._parameters["output_labels"]

Expand Down
4 changes: 3 additions & 1 deletion tests/test_openeo_gfmap/test_feature_extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ def test_patch_feature_local():
bands=[band for band in inds.bands.to_numpy() if band != "crs"]
).transpose("bands", "t", "y", "x")

features = apply_feature_extractor_local(DummyPatchExtractor, inds, parameters={})
features = apply_feature_extractor_local(
DummyPatchExtractor, inds, parameters={"GEO-EPSG": 32631}
)

features.to_netcdf(Path(__file__).parent / "results/patch_features_local.nc")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_openeo_gfmap/test_s1_fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def compare_sentinel1_tiles():
tile_path = (
Path(__file__).parent / f"results/{backend.value}_sentinel1_grd.nc"
)
loaded_tiles.append(xr.open_dataset(tile_path, engine="h5netcdf"))
loaded_tiles.append(xr.open_dataset(tile_path))

# Compare the variable data type
dtype = None
Expand Down
2 changes: 1 addition & 1 deletion tests/test_openeo_gfmap/test_s2_fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def compare_sentinel2_tiles():
tile_path = (
Path(__file__).parent / f"results/{backend.value}_sentinel2_l2a.nc"
)
loaded_tiles.append(xr.open_dataset(tile_path, engine="h5netcdf"))
loaded_tiles.append(xr.open_dataset(tile_path))

# Compare the tile variable types all togheter
dtype = None
Expand Down

0 comments on commit 8089efc

Please sign in to comment.