Skip to content

Replace ZArray with zarr.core.array.ArrayMetadata #411

@abarciauskas-bgse

Description

@abarciauskas-bgse

I don't believe there is an issue for this: We want to replace (or dramatically simplify) the custom ZArray class that exists in virtualizarr/zarr.py with zarr-python classes and methods.

Based on discussion in #175, I believe we want to replace ZArray with zarr.core.array.ArrayV2Metadata and zarr.core.array.ArrayV3Metadata and refactor every place that uses ZArray (and probably refactor codecs.py.

I looked at #175 and pulled some of them into a branch I have started working on (https://github.com/zarr-developers/VirtualiZarr/tree/ab/use-zarr-python-metadata, which I have only tested and made one test pass so far (virtualizarr/tests/test_manifests/test_array.py::TestStack::test_stack_empty), but wanted to an open an issue to track the approach to this change.

I think I will next look at the codecs tests to see what refactoring may be necessary there.

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions