Skip to content

Commit

Permalink
DCO Remediation Commit for Nikolas Schmitz <nikschmitz@ukaachen.de>
Browse files Browse the repository at this point in the history
I, Nikolas Schmitz <nikschmitz@ukaachen.de>, hereby add my Signed-off-by to this commit: f3e7d03
I, Nikolas Schmitz <nikschmitz@ukaachen.de>, hereby add my Signed-off-by to this commit: 88002e8
I, Nikolas Schmitz <nikschmitz@ukaachen.de>, hereby add my Signed-off-by to this commit: a9fe772
I, Nikolas Schmitz <nikschmitz@ukaachen.de>, hereby add my Signed-off-by to this commit: feac0dc
I, Nikolas Schmitz <nikschmitz@ukaachen.de>, hereby add my Signed-off-by to this commit: 8194026
I, Nikolas Schmitz <nikschmitz@ukaachen.de>, hereby add my Signed-off-by to this commit: 42c4813

Signed-off-by: Nikolas Schmitz <nikschmitz@ukaachen.de>
Signed-off-by: Nikolas Schmitz <nikolas.schmitz@rwth-aachen.de>
  • Loading branch information
NikolasSchmitz committed Mar 27, 2024
1 parent 5bb531e commit ae704f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monai/data/wsi_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ae704f3

Please sign in to comment.