Skip to content

Commit

Permalink
use sets for dimension checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Matic Lubej committed Nov 3, 2023
1 parent 8a8cb06 commit 9e98067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_mogpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_mogpr_udf(data):
from fusets.openeo.mogpr_udf import apply_datacube

result = apply_datacube(XarrayDataCube(data.to_array(dim="bands")), context={})
assert result.array.dims == ("bands", "t", "y", "x")
assert set(result.array.dims) == {"bands", "t", "y", "x"}
assert result.array.shape == (2, 146, 2, 2)


Expand All @@ -33,5 +33,5 @@ def test_mogpr_train_model(data):
t.fit(data)
out = t.transform(data)

assert tuple(out.coords) == ("t", "y", "x")
assert set(out.coords) == {"t", "y", "x"}
assert out.NDVI.shape == (146, 2, 2)

0 comments on commit 9e98067

Please sign in to comment.