Skip to content

Commit

Permalink
handle slide_mpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Milk committed Jun 11, 2024
1 parent 8852a60 commit 3cc12a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lazyslide/pp/tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ def tiles(
run_downsample = False
if mpp is None:
mpp = wsi.metadata.mpp
if slide_mpp is not None:
if slide_mpp is None:
slide_mpp = wsi.metadata.mpp

if slide_mpp is not None:
downsample = mpp / slide_mpp

lower_ds = downsample - tolerance
Expand Down

0 comments on commit 3cc12a7

Please sign in to comment.