Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 4, 2024
1 parent feb6828 commit 5461801
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions monai/data/wsi_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,13 @@ def get_data(
def _compute_mpp_target_res(self, closest_lvl, closest_lvl_dim, mpp_list, user_mpp: tuple):
"""
Resizes the whole slide image to the specified resolution in microns per pixel (mpp).
Args:
wsi: whole slide image object from WSIReader
user_mpp: the resolution in microns per pixel at which the whole slide image representation should be extracted.
closest_lvl: the wsi level that is closest to the user-provided mpp resolution.
mpp_list: list of mpp values for all levels of a whole slide image.
"""
mpp_closest_lvl = mpp_list[closest_lvl]
mpp_closest_lvl_x, mpp_closest_lvl_y = mpp_closest_lvl
Expand Down Expand Up @@ -1466,7 +1466,7 @@ def _resize_to_mpp_res(self, wsi, closest_lvl, mpp_list, user_mpp: tuple):
user_mpp: the resolution in microns per pixel at which the whole slide image representation should be extracted.
closest_lvl: the wsi level that is closest to the user-provided mpp resolution.
mpp_list: list of mpp values for all levels of a whole slide image.
"""
pil_image, _ = optional_import("PIL", name="Image")

Expand Down

0 comments on commit 5461801

Please sign in to comment.