Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DCO Remediation Commit for Nikolas Schmitz <[email protected]>
Browse files Browse the repository at this point in the history
I, Nikolas Schmitz <[email protected]>, hereby add my Signed-off-by to this commit: f3e7d03
I, Nikolas Schmitz <[email protected]>, hereby add my Signed-off-by to this commit: 88002e8
I, Nikolas Schmitz <[email protected]>, hereby add my Signed-off-by to this commit: a9fe772
I, Nikolas Schmitz <[email protected]>, hereby add my Signed-off-by to this commit: feac0dc
I, Nikolas Schmitz <[email protected]>, hereby add my Signed-off-by to this commit: 8194026
I, Nikolas Schmitz <[email protected]>, hereby add my Signed-off-by to this commit: 42c4813

Signed-off-by: Nikolas Schmitz <[email protected]>
NikolasSchmitz committed Mar 25, 2024
1 parent 76d84f2 commit cfa7f8d
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
@@ -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.

0 comments on commit cfa7f8d

Please sign in to comment.