Skip to content

Support N5 varlength

Compare
Choose a tag to compare
@constantinpape constantinpape released this 10 Nov 17:07
· 342 commits to master since this release
475bd98

Varlength chunks store chunk data with arbitrary number of elements.
In z5py, varlength chunks cannot be read/written by [].

Instead, this release also exposes access to chunks via
Dataset.write_chunk / Dataset.read_chunk.
Chunks with variable length can be written via:

ds.write_chunk(chunk_id, var_len_data, varlen=True)

and chunks in varlength mode will be correctly read by read_chunk.

Note that the zarr format does not support varlength chunks.