Skip to content

Commit def8f55

Browse files
Fix tests
1 parent 22e4f9e commit def8f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flamingo_tools/measurements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def _default_object_features(
155155
# The radius passed is given in micrometer.
156156
# The resolution is given in micrometer per pixel.
157157
# So we have to divide by the resolution to obtain the radius in pixel.
158-
radius_in_pixel = background_radius / resolution
158+
radius_in_pixel = background_radius / resolution if isinstance(resolution, int) else resolution[1]
159159
measures = _normalize_background(measures, image, background_mask, center, radius_in_pixel, norm, median_only)
160160

161161
# Do the volume and surface measurement.

0 commit comments

Comments
 (0)