Skip to content

Commit ab843ad

Browse files
minor projection simplification
1 parent 67335be commit ab843ad

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

fractal_tasks_core/tasks/projection.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,11 @@ def projection(
121121
roi_table_name, check_type="generic_roi_table"
122122
)
123123

124-
roi_list = []
125124
for roi in table.rois():
126125
roi.z = 0.0
127126
roi.z_length = 1.0
128-
roi_list.append(roi)
129-
130-
# We should have a public API to set reset the rois
131-
# or have a overwrite keyword in the add method
132-
table._rois = {}
133-
table.add(roi_list)
127+
table.add(roi, overwrite=True)
128+
134129
table.consolidate()
135130
logger.info(f"Table {roi_table_name} Projection done")
136131

0 commit comments

Comments
 (0)