To reproduce: https://github.com/giovp/spatialdata-sandbox/blob/main/xenium_2.0.0_io/to_zarr.py The problem is caused by https://github.com/scverse/spatialdata/blob/fe5fae7b9d5c0e90ee9a13e099647c448e992326/src/spatialdata/models/models.py#L894. Related to https://github.com/scverse/spatialdata/issues/1009 and could share the same fix proposed in https://github.com/scverse/spatialdata/pull/1010.
To reproduce: https://github.com/giovp/spatialdata-sandbox/blob/main/xenium_2.0.0_io/to_zarr.py
The problem is caused by
spatialdata/src/spatialdata/models/models.py
Line 894 in fe5fae7
Related to #1009 and could share the same fix proposed in #1010.