Skip to content

Releases: zarr-developers/pydantic-zarr

v0.8.4

09 Sep 08:23
75aff71

Choose a tag to compare

What's Changed

  • Fix from_zarr for arrays with no dimension names by @dstansby in #108

Full Changelog: v0.8.3...v0.8.4

v0.8.3

01 Sep 11:43
bfb63c2

Choose a tag to compare

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

14 Aug 11:49
e790176

Choose a tag to compare

What's Changed

  • Fix GroupSpec.from_zarr typing by @dstansby in #91
  • disallow empty codecs, and use a sane default in auto_codecs, allow codecs to be specified by strings by @d-v-b in #95

Full Changelog: v0.8.1...v0.8.2

v0.8.1

11 Aug 14:33
ab4e8f1

Choose a tag to compare

What's Changed

Full Changelog: v0.8.0...v0.8.1

v0.8.0

31 Jul 09:24
91aa3eb

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.0...v0.8.0

v0.7.0

20 Mar 10:46

Choose a tag to compare

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_array to explicitly list the relevant parameters of the ArraySpec constructor (banishing **kwargs code 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 attrs attribute will have the attrs propagate to the resulting ArraySpec.attributes, and similarly for chunks (in the case of this specific attribute, we also check for chunksize to 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

03 Mar 19:44

Choose a tag to compare

What's Changed

  • add to_flat, from_flat by @d-v-b in #25.
    These methods allow creating GroupSpec instances to / from a flat "dict of strings" representation of a hierarchy.

  • add like method for GroupSpec and ArraySpec by @d-v-b in #25
    This method allows for parametrically comparing GroupSpec and ArraySpec instances to other Group/ArraySpec, or to zarr.Group or zarr.Array.

  • add depth kwarg to GroupSpec.from_zarr that limits the depth of tree traversal. by @d-v-b in #25

  • [breaking] GroupSpec.members is nullable, to accommodate the flat hierarchy representation, and to accommodate limiting recursion depth in GroupSpec.from_zarr by @d-v-b in #25.

  • fix repo name in docs by @d-v-b in #26

Full Changelog: v0.5.2...v0.6.0

0.5.2

15 Feb 11:51

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.5.1...v0.5.2

0.5.1

06 Oct 20:07

Choose a tag to compare

What's Changed

Full Changelog: v0.4.0...v0.5.1

0.5.0

22 Aug 20:42

Choose a tag to compare

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! the items property of GroupSpec has been renamed to members to prevent aliasing with the items method of python mutable mappings ⚠️.

Full Changelog: v0.4.0...v0.5.0