You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a var name contains a slash, for instance a/b, this is written on disk as a folder a, and then b a subfolder of a. See screenshot. This creates problems, such as in the code below. Previously in spatialdata we observed also this OS-dependent problem (appearing on Windows for some users, but that we couldn't reproduce) #1447.
The bug that I am reporting now occurs on macOS. The linked bug was a problem on windows because on macOS, if I write only a/b and not also a, the read write works, but when moving such anndata Zarr store (on disk) to a Windows machine, I guess something gets messed up due to the difference between / being a path separator on macOS, but not on Windows.
Please make sure these conditions are met
Report
Related to #321.
When a var name contains a slash, for instance
a/b
, this is written on disk as a foldera
, and thenb
a subfolder ofa
. See screenshot. This creates problems, such as in the code below. Previously inspatialdata
we observed also this OS-dependent problem (appearing on Windows for some users, but that we couldn't reproduce) #1447.Code:
The reasons of the errors is that on disk
a/b
is saved as a foldera
withb
as a subfolder.In the first 2 errors,
b
is not present ina
since the var namea
overwrites the previousa
folder.In the latest 2 error the
a/b
folder cannot be written becausea
was written first.In the last part of the script (no error), you can reproduce having
b
written as a subfolder ofa
.Proposed solution
I propose to disallow the character
/
for column names of obs, var, obsm, varm, obsp, varp, uns.See also #321 (comment)
Versions
The text was updated successfully, but these errors were encountered: