Skip to content

Commit

Permalink
test: Update WSI object to use OS-3.ndpi instead of OS-2.ndpi
Browse files Browse the repository at this point in the history
The WSI object in the test_wsi.py file now uses the OS-3.ndpi image instead of the OS-2.ndpi image for testing purposes. This change ensures that the WSI class works also for IHC images
  • Loading branch information
loic-lb committed Aug 12, 2024
1 parent dffe60c commit 2897280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_wsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TestWSI():
def setup_class(self) -> None:
os.chdir(os.path.dirname(os.path.abspath(__file__)))
self.urls = ["https://openslide.cs.cmu.edu/download/openslide-testdata/Aperio/CMU-1.svs",
"https://openslide.cs.cmu.edu/download/openslide-testdata/Hamamatsu/OS-2.ndpi"]
"https://openslide.cs.cmu.edu/download/openslide-testdata/Hamamatsu/OS-3.ndpi"]
self.engines = ["openslide", "tiffslide"]
self.ROIs = [[2064, 12192, 22128, 32208], [43392, 19072, 96128, 72192]]
self.wsi_paths = []
Expand All @@ -52,7 +52,7 @@ def setup_class(self) -> None:
def test_read(self, subtests):
expected_values = {
"CMU-1": {"level_count": 3, "instance": openslide.OpenSlide},
"OS-2": {"level_count": 10, "instance": tiffslide.TiffSlide}
"OS-3": {"level_count": 10, "instance": tiffslide.TiffSlide}
}
for i in range(len(self.WSI_objects)):
with subtests.test(msg=f"Test slide {os.path.basename(self.wsi_paths[i])}"):
Expand Down

0 comments on commit 2897280

Please sign in to comment.