Skip to content

Commit

Permalink
update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
benmalef committed Oct 21, 2024
1 parent 2e68dec commit 94a2924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GANDLF/data/patch_miner/opm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def get_patch_size_in_microns(
"XResolution",
]:
if _property in metadata:
magnification = int(metadata[_property])
magnification = float(metadata[_property])
magnification_prev = magnification
break
elif i == 1:
Expand All @@ -524,7 +524,7 @@ def get_patch_size_in_microns(
"YResolution",
]:
if _property in metadata:
magnification = int(metadata[_property])
magnification = float(metadata[_property])
break
if magnification == -1:
# if y-axis data is missing, use x-axis data
Expand Down

0 comments on commit 94a2924

Please sign in to comment.