Open ckmah opened 4 months ago
Looks like this is an open issue https://github.com/scverse/spatialdata/issues/311 that still needs to be addressed https://github.com/scverse/spatialdata/issues/293. Could also migrate all our annotations to Table
elements and retrieve with get_values()
instead but will be a significant refactor.
https://github.com/scverse/spatialdata/pull/542 will solve the issue of columns lost when saving shapes.
The linked PR is now ready 😊
Metadata such as indexing columns generated as columns in spatialdata shapes are ignored when written to file using
SpatialData.write()
in versionspatialdata==0.0.15
. For nowbento-tools
will also reindex when loading data withbt.io.read_zarr()
.Solution may be as simple as upgrading to
spatialdata>=0.1.0
.