Skip to content

Commit

Permalink
Renamed function to get_wsi_at_mpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas Schmitz committed Mar 24, 2024
1 parent a6e3e8d commit 42c4813
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions monai/data/wsi_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def get_mpp(self, wsi, level: int) -> tuple[float, float]:
"""
return self.reader.get_mpp(wsi, level)

def get_img_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.array:
"""
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 All @@ -620,7 +620,7 @@ def get_img_at_mpp(self, wsi, mpp: tuple, atol: float = 0.00, rtol: float = 0.05
rtol: the acceptable relative tolerance for resolution in micro per pixel.
"""
return self.reader.get_img_at_mpp(wsi, mpp, atol, rtol)
return self.reader.get_wsi_at_mpp(wsi, mpp, atol, rtol)

def get_power(self, wsi, level: int) -> float:
"""
Expand Down 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_img_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.array:
"""
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 @@ -1048,7 +1048,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_img_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.array:
"""
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 @@ -1305,7 +1305,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_img_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.array:
"""
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 42c4813

Please sign in to comment.