spatialdata
spatialdata copied to clipboard
Remove `region` from `adata.uns['spatialdata_attrs']`
As discussed here https://github.com/scverse/spatialdata/pull/410#discussion_r1430298422 and here https://github.com/scverse/spatialdata/pull/410#discussion_r1441517847, we are considering removing the region metadata.
We will still write it to disk to be used for cloud applications, but for in-memory uses we can have a method that is reading the levels of the column table.obs[REGION_KEY], which we will encourage (via warnings) or force to be a categorical.
CC @giovp @melonora