Skip to content

v0.7.0

Latest
Compare
Choose a tag to compare
@d-v-b d-v-b released this 20 Mar 10:46
· 15 commits to main since this release

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