Releases: zarr-developers/pydantic-zarr
v0.8.4
v0.8.3
What's Changed
- Remove out of date disclaimer by @dstansby in #99
- Bump actions/checkout from 4 to 5 in the actions group by @dependabot[bot] in #97
- Make typing of v2 from_flat() invariant by @dstansby in #100
- Improve runtime type checking in from_flat() by @dstansby in #101
- Correctly propagate dimension names from zarr arrays by @dstansby in #103
Full Changelog: v0.8.2...v0.8.3
v0.8.2
v0.8.1
v0.8.0
What's Changed
- Update usage_zarr_v2.md by @d-v-b in #36
- Update README.md by @d-v-b in #37
- Update README.md by @d-v-b in #38
- Update README.md by @d-v-b in #40
- Allow classmethods to return sub-classes by @dstansby in #35
- Update README.md by @d-v-b in #42
- refactor the entire build system to use hatch instead of poetry. by @d-v-b in #43
- type hints for tests by @d-v-b in #45
- chore(deps): bump the actions group with 3 updates by @dependabot[bot] in #44
- add uv.lock and .DS_store to gitignore by @d-v-b in #47
- Update URLs in doc config by @dstansby in #46
- link to the latest version of pydantic docs by @d-v-b in #51
- zarr_version -> zarr_format by @d-v-b in #52
- Add test for .like() with a zarr Array by @dstansby in #50
- Add pre-commit run on GH actions by @dstansby in #57
- chore(deps): bump the actions group with 2 updates by @dependabot[bot] in #58
- Migrate to zarr-python 3 by @dstansby in #49
- Implement from_array for v3 by @dstansby in #53
- Implement from_zarr by @dstansby in #62
- pin python to 3.11 in ci by @d-v-b in #61
- Update pydantic pin on doc build by @dstansby in #63
- implement arrayspec.to_zarr for v3 by @d-v-b in #64
- Update zarr version in mypy check by @dstansby in #70
- Start working towards strict mypy by @dstansby in #73
- Handle zarr 3.1.0 by @d-v-b in #74
- get GroupSpec.to_zarr working for v3 by @d-v-b in #67
- allow basemodel in
TBaseAttrby @d-v-b in #78 - Allow zarr Arrays in from_array() by @dstansby in #80
- Add types for order and dimension separator by @dstansby in #81
- use the JSON form of the fill value by @d-v-b in #77
- Fix readthedocs config by @dstansby in #83
New Contributors
- @dstansby made their first contribution in #35
- @dependabot[bot] made their first contribution in #44
Full Changelog: v0.7.0...v0.8.0
v0.7.0
What's Changed
That PR contains:
docs:
- a bunch of prose improvements, some new sections, and some broken links removed
ArraySpec.from_array
- When chunks is "auto", use guess_chunks from zarr-python instead of defaulting to a single chunk. A single chunk is completely wrong for large arrays.
- expand the function signature of
from_arrayto explicitly list the relevant parameters of theArraySpecconstructor (banishing**kwargscode smell), - make each parameter default to "auto", which dispatches to functions that attempt to infer an attribute value from the input data. The default behavior now is that an array with an
attrsattribute will have theattrspropagate to the resultingArraySpec.attributes, and similarly forchunks(in the case of this specific attribute, we also check forchunksizeto accomodate dask arrays). If this ends up being terrible I will revert it.
to_zarr
- overwrite is an explicit keyword-only argument
support for python 3.9
- import TypeAlias from typing_extensions
- add some little pydantic dependency that enables the modern union | operator
- add python 3.9 to the test matrix in ci
Full Changelog: v0.6.0...v0.7.0
v0.6.0
What's Changed
-
add
to_flat,from_flatby @d-v-b in #25.
These methods allow creatingGroupSpecinstances to / from a flat "dict of strings" representation of a hierarchy. -
add
likemethod forGroupSpecandArraySpecby @d-v-b in #25
This method allows for parametrically comparingGroupSpecandArraySpecinstances to otherGroup/ArraySpec, or tozarr.Grouporzarr.Array. -
add
depthkwarg toGroupSpec.from_zarrthat limits the depth of tree traversal. by @d-v-b in #25 -
[breaking]
GroupSpec.membersis nullable, to accommodate the flat hierarchy representation, and to accommodate limiting recursion depth inGroupSpec.from_zarrby @d-v-b in #25.
Full Changelog: v0.5.2...v0.6.0
0.5.2
0.5.1
0.5.0
What's Changed
- docs: fix typo by @d-v-b in #8
- Fix doc link by @d-v-b in #11
- Items to members by @d-v-b in #12
⚠️ This is a breaking change! theitemsproperty ofGroupSpechas been renamed tomembersto prevent aliasing with theitemsmethod of python mutable mappings⚠️ .
Full Changelog: v0.4.0...v0.5.0