From d81f2f14915e079e3b74bff87941b5880deeebdd Mon Sep 17 00:00:00 2001
From: Remi Cresson <remi.cresson@inrae.fr>
Date: Thu, 23 Mar 2023 15:08:58 +0100
Subject: [PATCH] DOC: update

---
 scenes/spot.py              | 4 ++--
 test/scenes_test_base.py    | 2 --
 test/spot67_imagery_test.py | 3 +++
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/scenes/spot.py b/scenes/spot.py
index 9f2ff7a..465c46b 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 72519bc..1e0be36 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 969b81e..e6828fc 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.
-- 
GitLab