Closed pakiessling closed 3 months ago
Hi,
You already have existing shapes that are stored on-disk, so you need to remove them before saving new shapes:
if sdata.is_backed():
sdata.delete_element_from_disk(shapes_key)
sdata.write_element(shapes_key, overwrite=True)
If you prefer, you can also use another shapes_key
(i.e. a name of shapes that is not already written on disk)
Hope this helps!
Ah, now I understand ty!
Hi,
I am tinkering with a new conflict resolution strategy.
I wrote a cli that takes as input a Spatialdata folder and a directory of .parquet segmentation files.
After resolving overlaps I try to save the shapes to the .zarr store similiarly to
sopa resolve
Unfortunately, I always run into:
Could you point me to where you accomplish this without writing to a new zarr store?