Skip to content

Commit da10279

Browse files
committed
Rename variable roi_table to roi_table_name
1 parent 1adf2bd commit da10279

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

fractal_tasks_core/tasks/projection.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,12 @@ def projection(
109109
# Ends
110110

111111
# Copy over the tables
112-
for roi_table in original_ngff_image.tables.list(table_type="roi_table"):
113-
table = original_ngff_image.tables.get_table(roi_table)
112+
for roi_table_name in original_ngff_image.tables.list(
113+
table_type="roi_table"
114+
):
115+
table = original_ngff_image.tables.get_table(roi_table_name)
114116
mip_table = new_ngff_image.tables.new(
115-
roi_table, table_type="roi_table", overwrite=True
117+
roi_table_name, table_type="roi_table", overwrite=True
116118
)
117119

118120
roi_list = []
@@ -123,7 +125,7 @@ def projection(
123125

124126
mip_table.set_rois(roi_list, overwrite=True)
125127
mip_table.consolidate()
126-
ngio_logger.info(f"Table {roi_table} copied.")
128+
ngio_logger.info(f"Table {roi_table_name} copied.")
127129

128130
# Generate image_list_updates
129131
image_list_update_dict = dict(

0 commit comments

Comments
 (0)