diff --git a/scenes/spot.py b/scenes/spot.py index 9f2ff7a4d8c560bf286f9386fc6cf566030e02eb..465c46beb882af4cec3d7d0187b86fe38b374e0c 100644 --- a/scenes/spot.py +++ b/scenes/spot.py @@ -44,7 +44,7 @@ sc = get_local_spot67drs_scene( ## From STAC -The following example show how to instanciate on the fly `Spot67SceneDRS` from +The following example show how to instantiate on the fly `Spot67SceneDRS` from a STAC catalog of Dinamis (prototype from CROCc). ```python @@ -411,7 +411,7 @@ class Spot67Scene(Scene): } params.update(kwargs) pansharp = src_class(self, pyotb.BundleToPerfectSensor(params)) - binary_mask = pyotb.SuperImpose({ + binary_mask = pyotb.Superimpose({ "inr": pansharp, "inm": pan, "interpolator": "nn" diff --git a/test/scenes_test_base.py b/test/scenes_test_base.py index 72519bc8dc853d72ace242de7863b418fd53df62..1e0be36527c2ae8191ff8e80843d54898a06ba30 100644 --- a/test/scenes_test_base.py +++ b/test/scenes_test_base.py @@ -21,8 +21,6 @@ class ScenesTestBase(ABC, unittest.TestCase): :param mae_threshold: mean absolute error threshold :return: boolean """ - assert isinstance(image, str) or isinstance(image, - pyotb.Output), f"image is {image}" nbands_in = pyotb.Input(image).shape[-1] nbands_ref = pyotb.Input(reference).shape[-1] diff --git a/test/spot67_imagery_test.py b/test/spot67_imagery_test.py index 969b81e5d57355edcc894499dd0a755968e7e10a..e6828fcfa1ff729cae88cb337fbc3bf631c1cdab 100644 --- a/test/spot67_imagery_test.py +++ b/test/spot67_imagery_test.py @@ -73,6 +73,9 @@ class Spot67ImageryTest(ScenesTestBase): roi=roi ) + def slice(self, inp): + return inp[2048:512, 2048:512, :] + def test_pxs_dn_msk_drilled_cached(self): """ Dummy test since no cloud in the input scene.