diff --git a/monai/data/wsi_reader.py b/monai/data/wsi_reader.py index d7cfb444e3b..be121efa403 100644 --- a/monai/data/wsi_reader.py +++ b/monai/data/wsi_reader.py @@ -763,7 +763,7 @@ def get_mpp(self, wsi, level: int) -> tuple[float, float]: raise ValueError("`mpp` cannot be obtained for this file. Please use `level` instead.") - def get_wsi_at_mpp(self, wsi, mpp: tuple, atol: float = 0.00, rtol: float = 0.05) -> np.ndarray: + def get_wsi_at_mpp(self, wsi, mpp: tuple, atol: float = 0.00, rtol: float = 0.05) -> Any: """ Returns the representation of the whole slide image at a given micro-per-pixel (mpp) resolution. The optional tolerance parameters are considered at the level whose mpp value is closest to the one provided by the user. @@ -1311,7 +1311,7 @@ def get_mpp(self, wsi, level: int) -> tuple[float, float]: raise ValueError("`mpp` cannot be obtained for this file. Please use `level` instead.") - def get_wsi_at_mpp(self, wsi, mpp: tuple, atol: float = 0.00, rtol: float = 0.05) -> np.array: + def get_wsi_at_mpp(self, wsi, mpp: tuple, atol: float = 0.00, rtol: float = 0.05) -> np.ndarray: """ Returns the representation of the whole slide image at a given micro-per-pixel (mpp) resolution. The optional tolerance parameters are considered at the level whose mpp value is closest to the one provided by the user.