From 1c1011283390bd9d611c6fd2a8fbdb6445f9173d Mon Sep 17 00:00:00 2001 From: Nikolas Schmitz Date: Mon, 25 Mar 2024 12:07:06 +0100 Subject: [PATCH] DCO Remediation Commit for Nikolas Schmitz I, Nikolas Schmitz , hereby add my Signed-off-by to this commit: f3e7d03d93b30a79a37581108067e6bb8f428c94 I, Nikolas Schmitz , hereby add my Signed-off-by to this commit: 88002e8a91d6466a2fdcb60a19b8cd1ed9e89558 I, Nikolas Schmitz , hereby add my Signed-off-by to this commit: a9fe772d56a458c853bbb69ecef4585cb2ef564d I, Nikolas Schmitz , hereby add my Signed-off-by to this commit: feac0dc57ef2cc6fd3f24204d43881fd186c5595 I, Nikolas Schmitz , hereby add my Signed-off-by to this commit: 81940261f2c35ae5f8c4485054523b9306a3eeff I, Nikolas Schmitz , hereby add my Signed-off-by to this commit: 42c48134bbbc55c781abf662349c26bc671f674b Signed-off-by: Nikolas Schmitz Signed-off-by: Nikolas Schmitz --- monai/data/wsi_reader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.