Closed jluethi closed 10 months ago
Typical ROI tables have the following zattrs:
"encoding-type": "anndata", "encoding-version": "0.1.0"
But output ROI tables have:
"instance_key": "label", "region": { "path": "../labels/organoids" }, "type": "ngff:region_table"
We should add encoding-type & encoding-version to its .zattrs
I guess we could just hard-code this here: https://github.com/fractal-analytics-platform/fractal-tasks-core/blob/3dc010d32d70bd7fb38e1ec1e3a810ca4526221c/fractal_tasks_core/tasks/cellpose_segmentation.py#L637C9-L637C20 ? But how is that getting set for the other tables? Does the anndata write write those values as a default if we provide nothing else? Let's work towards being consistent here and having the encoding types defined everywhere
Typical ROI tables have the following zattrs:
But output ROI tables have:
We should add encoding-type & encoding-version to its .zattrs
I guess we could just hard-code this here: https://github.com/fractal-analytics-platform/fractal-tasks-core/blob/3dc010d32d70bd7fb38e1ec1e3a810ca4526221c/fractal_tasks_core/tasks/cellpose_segmentation.py#L637C9-L637C20 ? But how is that getting set for the other tables? Does the anndata write write those values as a default if we provide nothing else? Let's work towards being consistent here and having the encoding types defined everywhere