Open gdkrmr opened 2 years ago
I agree it would be great to do this. I once looked into this and it looks like this is difficult for directories since you can not read magic bytes from a directory.
Regarding the loadorgenerate macro, I would be happy to remove it from YAXArrays, because the functionality is in no way specific to YAXArrays. I would be happy if this became a small package as you suggested in the FileIO issue, so we don't have to maintain it here.
magic
can be a function that returns a Bool
[1] so I guess this should be fine. Not sure if FileIO can work on directories.
.zarray
that contains the `"zarr_format: 2" key, correct?.zgroup
file that contains the same key, correct?Does the magic
function have to check for anything else?
Question:
Zarr.jl
or YAXArrays.jl
?YAXArrays.jl
just load any .zgroup
? If not we have to load everything using Zarr.jl
.
Does it make sense to integrate this package with FileIO?
This way you can do
@loadOrGenerate
https://github.com/JuliaIO/FileIO.jl/issues/359