Skip to content

Commit 5bb531e

Browse files
Fixed return type
Signed-off-by: Nikolas Schmitz <[email protected]>
1 parent 18e82bd commit 5bb531e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

monai/data/wsi_reader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ def get_mpp(self, wsi, level: int) -> tuple[float, float]:
603603
"""
604604
return self.reader.get_mpp(wsi, level)
605605

606-
def get_wsi_at_mpp(self, wsi, mpp: tuple, atol: float = 0.00, rtol: float = 0.05) -> np.array:
606+
def get_wsi_at_mpp(self, wsi, mpp: tuple, atol: float = 0.00, rtol: float = 0.05) -> np.ndarray:
607607
"""
608608
Returns the representation of the whole slide image at a given micro-per-pixel (mpp) resolution.
609609
The optional tolerance parameters are considered at the level whose mpp value is closest to the one provided by the user.
@@ -763,7 +763,7 @@ def get_mpp(self, wsi, level: int) -> tuple[float, float]:
763763

764764
raise ValueError("`mpp` cannot be obtained for this file. Please use `level` instead.")
765765

766-
def get_wsi_at_mpp(self, wsi, mpp: tuple, atol: float = 0.00, rtol: float = 0.05) -> np.array:
766+
def get_wsi_at_mpp(self, wsi, mpp: tuple, atol: float = 0.00, rtol: float = 0.05) -> np.ndarray:
767767
"""
768768
Returns the representation of the whole slide image at a given micro-per-pixel (mpp) resolution.
769769
The optional tolerance parameters are considered at the level whose mpp value is closest to the one provided by the user.
@@ -1054,7 +1054,7 @@ def get_mpp(self, wsi, level: int) -> tuple[float, float]:
10541054

10551055
raise ValueError("`mpp` cannot be obtained for this file. Please use `level` instead.")
10561056

1057-
def get_wsi_at_mpp(self, wsi, mpp: tuple, atol: float = 0.00, rtol: float = 0.05) -> np.array:
1057+
def get_wsi_at_mpp(self, wsi, mpp: tuple, atol: float = 0.00, rtol: float = 0.05) -> np.ndarray:
10581058
"""
10591059
Returns the representation of the whole slide image at a given micro-per-pixel (mpp) resolution.
10601060
The optional tolerance parameters are considered at the level whose mpp value is closest to the one provided by the user.

0 commit comments

Comments
 (0)