zarr-python
zarr-python copied to clipboard
ensure that fill_value matches dtype
- ensures that the
fill_value
of a v3 array is an instance of that array's dtype. The behavior here matches numpy type casting rules, so ifdtype
isbool
and thefill_value
is provided as1
, the resultingfill_value
metadata will beTrue
. I'm happy to change this behavior, but for now this is expedient and matches what people might expect from v2 and numpy - refactors the metadata classes by partitioning v2 and v3 metadata into
src/zarr/metadata/v2.py
andsrc/zarr/metadata/v2.py
, respectively
TODO:
- [ ] Add unit tests and/or doctests in docstrings
- [ ] Add docstrings and API docs for any new/modified user-facing classes and functions
- [ ] New/modified features documented in docs/tutorial.rst
- [ ] Changes documented in docs/release.rst
- [ ] GitHub Actions have all passed
- [ ] Test coverage is 100% (Codecov passes)