From 94a2924e538dd6e3b1f14b55a83441c2c7471c5a Mon Sep 17 00:00:00 2001 From: vmalefioudakis Date: Mon, 21 Oct 2024 19:14:40 +0300 Subject: [PATCH] update utils.py --- GANDLF/data/patch_miner/opm/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GANDLF/data/patch_miner/opm/utils.py b/GANDLF/data/patch_miner/opm/utils.py index befcb1d09..997f13f17 100644 --- a/GANDLF/data/patch_miner/opm/utils.py +++ b/GANDLF/data/patch_miner/opm/utils.py @@ -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: @@ -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