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
top-level functions for reading, creating data (#2463)
* add functions for easy read-only data access
* sync funcs
* make read-only funcs top-level exports
* add create_array, create_group, and tests
* add top-level imports
* add test for top-level exports
* add test for read
* add asserts
* Apply suggestions from code review
* handle sharding in create_array
* tweak
* make logic of _auto_partition better for shard shape
* add dtype parsing, and tweak auto_partitioning func
* sketch of docstring; remove auto chunks / shard shape
* tweak docstring
* docstrings
* ensure tests pass
* tuple -> list
* allow data in create_array
* docstring
* remove auto_partition
* make shape shapelike
* use create_array everywhere in group class
* remove readers
* fix dodgy imports
* compressors -> compression, auto chunking, auto sharding, auto compression, auto filters
* use sane shard shape when there are too few chunks
* fix: allow user-specified filters and compression
* np.dtype[np.generic] -> np.dtype[Any]
* handle singleton compressor / filters input
* default codec config now uses the full config dict
* test for auto sharding
* test
* adds a shards property
* add (typed) functions for resolving codecs
* better codec parsing
* add warning if auto sharding is used
* remove read_array
* rename compression to compressors, and make the docstring for create_array more clear on what filters and compressors mean
* compression -> compressors, shard_shape -> shards, chunk_shape -> chunks
* use typerror instead of valuerror; docstring
* default order is None
* fix circular dep
* format
* fix some tests
* use filters=auto and compressors=auto in Group.create_array
* compression -> compressors
* Update src/zarr/core/group.py
Co-authored-by: Norman Rzepka <code@normanrz.com>
* fix mypy
* narrow type of filters param and compression param
* remove data kwarg to create_array
* mypy fixes
* ensure that we accept dict form of compressor in _parse_chunk_encoding_v2
* fix properties test
* add tests for compressors and filters kwargs to create_array
* add tests for codec inference
* add test for illegal shards kwarg for v2 arrays
* remove redundant test function
* tests and types
* rm print
* types
* resolve cyclic import
* add create_array to async and sync API
* docs for create_array
* rename (Async)Array.create to _create
* adds array_bytes_codec kwarg
* tests
* tests for no filters+compressors
* widen type of FiltersParam to include single numcodecs codec instances
* don't alias None to default codecs in _create_v2
* allow single codec instances for filters, and None for filters / compressor, and condense some tests
* add docstring for None
* single-item tuple for compressors in v2
* Update src/zarr/core/array.py
* tweaks
* pr feedback 1
* tests
* mypy
* rename array_bytes_codec to serializer
* Update src/zarr/api/asynchronous.py
Co-authored-by: Joe Hamman <jhamman1@gmail.com>
* docstrings
* *params -> *like
* *params -> *like, in tests
* adds deprecated compressor arg to Group.create_array
* docs
---------
Co-authored-by: Joe Hamman <joe@earthmover.io>
Co-authored-by: Norman Rzepka <code@normanrz.com>
Co-authored-by: Joe Hamman <jhamman1@gmail.com>
0 commit comments