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
{{ message }}
Repository navigation
Zarr convention for ragged/nested array layouts
#4084
I'd like to start a conversation here about formalizing an on-disk representation for ragged and nested arrays in Zarr.
Awkward Array currently has no Zarr I/O. The library can serialize to raw buffers via ak.to_buffers(), but there's no standard path to a Zarr store. We'd like to design an on-disk layout for Awkward Arrays in Zarr and, if the community is interested, pursue it as a ZEP. The basic idea:
An Awkward Array maps naturally to a Zarr group whose hierarchy mirrors the type structure (ListOffsetArray → a group with two children: offsets and content; RecordArray → a group with named children; etc.)
Leaf nodes are regular Zarr arrays holding flat numeric buffers.
Type metadata lives in group-level .zattrs.
The goal is a spec that other tools can implement without depending on Awkward Array.
Here are the links to previous related discussions:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I'd like to start a conversation here about formalizing an on-disk representation for ragged and nested arrays in Zarr.
Awkward Array currently has no Zarr I/O. The library can serialize to raw buffers via
ak.to_buffers(), but there's no standard path to a Zarr store. We'd like to design an on-disk layout for Awkward Arrays in Zarr and, if the community is interested, pursue it as a ZEP. The basic idea:An Awkward Array maps naturally to a Zarr group whose hierarchy mirrors the type structure (
ListOffsetArray→ a group with two children:offsetsandcontent;RecordArray→ a group with named children; etc.)Leaf nodes are regular Zarr arrays holding flat numeric buffers.
Type metadata lives in group-level
.zattrs.The goal is a spec that other tools can implement without depending on Awkward Array.
Here are the links to previous related discussions:
zarr-developers/zarr-python#3948
#29
https://anndata.readthedocs.io/en/0.10.x/tutorials/notebooks/awkward-arrays.html
zarr-developers/community#29
https://docs.xarray.dev/en/latest/generated/xarray.Dataset.to_zarr.html
All reactions