Skip to content

Commit

Permalink
Call is_big_image() once per image
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Sep 13, 2024
1 parent efdee36 commit d33f646
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion omero/export_scripts/Batch_ROI_Export.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def get_export_data(conn, script_params, image, units=None):
all_planes = script_params["Export_All_Planes"]
include_points = script_params.get("Include_Points_Coords", False)
size_c = image.getSizeC()
big_image = is_big_image(image)
# Channels index
channels = script_params.get("Channels", [1])
ch_indexes = []
Expand Down Expand Up @@ -116,7 +117,7 @@ def get_export_data(conn, script_params, image, units=None):
# get pixel intensities
for z in z_indexes:
for t in t_indexes:
if z is None or t is None or is_big_image(image):
if z is None or t is None or big_image:
stats = None
else:
stats = roi_service.getShapeStatsRestricted(
Expand Down

0 comments on commit d33f646

Please sign in to comment.