fractal-analytics-platform / fractal-tasks-core

Main tasks for the Fractal analytics platform
https://fractal-analytics-platform.github.io/fractal-tasks-core/
BSD 3-Clause "New" or "Revised" License
14 stars 6 forks source link

Always use `write_table` in tasks (rather than directly calling anndata) #580

Closed tcompa closed 11 months ago

tcompa commented 11 months ago

We need to update three tasks

$ git grep write_elem fractal_tasks_core/ | grep -v lib_write

fractal_tasks_core/tasks/apply_registration_to_ROI_tables.py:from anndata._io.specs import write_elem
fractal_tasks_core/tasks/apply_registration_to_ROI_tables.py:        write_elem(group_tables, new_roi_table, shifted_rois[acq])
fractal_tasks_core/tasks/apply_registration_to_image.py:from anndata._io.specs import write_elem
fractal_tasks_core/tasks/apply_registration_to_image.py:            write_elem(new_tables_group, table, curr_table)

fractal_tasks_core/tasks/calculate_registration_image_based.py:from anndata._io.specs import write_elem
fractal_tasks_core/tasks/calculate_registration_image_based.py:    write_elem(group_tables, roi_table, new_ROI_table)

fractal_tasks_core/tasks/copy_ome_zarr.py:from anndata._io.specs import write_elem
fractal_tasks_core/tasks/copy_ome_zarr.py:                        write_elem(

so that we'll write tables complying with our own V1 (ref #529)