-
-
Notifications
You must be signed in to change notification settings - Fork 330
Remove ArrayV2 #1857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove ArrayV2 #1857
Conversation
Co-authored-by: Davis Bennett <davis.v.bennett@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great @normanrz! I'll give this a deeper look next week but here are some initial reactions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @normanrz!
Co-authored-by: Joe Hamman <joe@earthmover.io>
…on into v3-v2-pipeline
This PR depends on #1670. I'll leave this one open until the other is ready. |
* merge * refactors CodecPipelines * fixes * adds HybridCodecPipeline * fixes * typing * typing * consistent naming * Apply suggestions from code review Co-authored-by: Davis Bennett <davis.v.bennett@gmail.com> * encode/decode are batched by default * use zarr.config for batch_size * don't use global lru_cache * removes HybridCodecPipeline * generic codec classes * default batch size = 1 * default batch size = 1 * docs * Update src/zarr/codecs/batched_codec_pipeline.py Co-authored-by: Joe Hamman <joe@earthmover.io> * mv batched_codec_pipeline -> pipeline * Remove ArrayV2 (#1857) * adds wrapper codecs for the v2 codec pipeline * encode_chunk_key * refactor ArrayV2 away * empty zattrs * Apply suggestions from code review Co-authored-by: Davis Bennett <davis.v.bennett@gmail.com> * unify ArrayMetadata * abstract ArrayMetadata * unified Array.create * use zarr.config for batch_size * __init__.py aktualisieren Co-authored-by: Joe Hamman <joe@earthmover.io> * ruff --------- Co-authored-by: Davis Bennett <davis.v.bennett@gmail.com> Co-authored-by: Joe Hamman <joe@earthmover.io> * merge --------- Co-authored-by: Davis Bennett <davis.v.bennett@gmail.com> Co-authored-by: Joe Hamman <joe@earthmover.io>
This PR removes the
ArrayV2
class. TheArray
class can now take either aArrayMetadata
orArrayV2Metadata
object and perform create, open and save accordingly.Note, there is still a separate
create_v2
method. We might want to merge that into thecreate
method.The V2 codec pipeline is implemented with the new
V2Compressor
andV2Filters
codecs. They act as wrappers around the compressor and filters of zarr v2.I also did some light refactorings in the Group to unify with the Array.
cc @jhamman
TODO: