Skip to content

(chore): zarr v3 updates for xarray - #1888

Merged
ilan-gold merged 104 commits into
ig/xarray_compatfrom
ig/xarray_zarr_v3
Mar 6, 2025
Merged

ilan-gold merged 104 commits into
ig/xarray_compatfrom
ig/xarray_zarr_v3

Conversation

@ilan-gold

Copy link
Copy Markdown
Contributor
  • Closes #
  • Tests added
  • Release note added (or unnecessary)

@ilan-gold ilan-gold changed the title Ig/xarray zarr v3 (chore): zarr v3 updates for xarray Mar 5, 2025
@ilan-gold ilan-gold added this to the 0.12.0 milestone Mar 5, 2025
@codecov

codecov Bot commented Mar 5, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 90.05848% with 17 lines in your changes missing coverage. Please review.

Project coverage is 84.38%. Comparing base (96cf6a8) to head (3ab1304).

Files with missing lines Patch % Lines
src/anndata/_io/specs/methods.py 92.75% 5 Missing ⚠️
src/anndata/_settings.py 73.33% 4 Missing ⚠️
src/anndata/_core/anndata.py 33.33% 2 Missing ⚠️
src/anndata/_io/zarr.py 86.66% 2 Missing ⚠️
src/anndata/compat/__init__.py 84.61% 2 Missing ⚠️
src/anndata/experimental/merge.py 92.30% 1 Missing ⚠️
src/anndata/tests/helpers.py 93.33% 1 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                  @@
##           ig/xarray_compat    #1888      +/-   ##
====================================================
+ Coverage             84.25%   84.38%   +0.13%     
====================================================
  Files                    45       45              
  Lines                  6669     6763      +94     
====================================================
+ Hits                   5619     5707      +88     
- Misses                 1050     1056       +6     
Files with missing lines Coverage Δ
src/anndata/_core/sparse_dataset.py 92.37% <100.00%> (+0.23%) ⬆️
src/anndata/_io/specs/registry.py 93.61% <100.00%> (+0.10%) ⬆️
src/anndata/_io/utils.py 76.15% <ø> (ø)
src/anndata/abc.py 100.00% <ø> (ø)
src/anndata/experimental/backed/_io.py 96.22% <100.00%> (+0.07%) ⬆️
src/anndata/experimental/backed/_lazy_arrays.py 94.17% <100.00%> (ø)
src/anndata/experimental/merge.py 87.20% <92.30%> (-0.24%) ⬇️
src/anndata/tests/helpers.py 81.48% <93.33%> (+0.36%) ⬆️
src/anndata/_core/anndata.py 82.46% <33.33%> (-0.20%) ⬇️
src/anndata/_io/zarr.py 83.14% <86.66%> (-0.61%) ⬇️
... and 3 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ilan-gold
ilan-gold marked this pull request as ready for review March 6, 2025 18:56
@ilan-gold
ilan-gold merged commit fac203a into ig/xarray_compat Mar 6, 2025
@ilan-gold
ilan-gold deleted the ig/xarray_zarr_v3 branch March 6, 2025 18:56
ilan-gold added a commit that referenced this pull request Mar 13, 2025
…ng + `read_elem_as_dask` -> `read_elem_lazy` (#1247)

* (fix): change unused category function from method to function

* (fix): actually track keys instead of relying on `deafultdict` behavior

* (chore): test unconsolidated warning

* Update pyproject.toml

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): use `test-full`/`test`

* (fix): typing for `_gen_dataframe`

* (chore): imrpoved comments for `Dataset2D`

* (fix): `iloc` is an `attr` not a `meth`

* (fix): release notes

* (fix): `zarr` doc in `read_backed`

* (fix): docs string

* (fix): wording in release note

* (chore): move `_remove_unused_categories` to static method

* (chore): use one `isinstance` call in `coerce_arrays`

* (chore): clean up `read_dataframe`

* (chore): handle case where `chunks` is not needed

* (chore): make reusable `LazyDataStructures`

* (chore): use `Path.suffix`

* (chore): `msg` for `warnings`

* (chore): remove erroneous `Union` in `TypeVar`

* (fix): use `cached_property` for accessing `dtype` + test

* (refactor): use `cached_property` for `categories`

* (refactor): use guard clause in `__getitem__` better

* (chore): type `get_index_dim`

* (fix): `shape` return type

* (refactor): `_subset` guard clause

* (fix): use `Counter`

* (refactor): `fix_known_differences` usage of `as_type`

* (chore): fragment

* (chore): fix the generic problem

* (chore): clean up tests

* Update tests/test_read_backed_experimental.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): should -> shall

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): `_gen_xarray_dict_iterator_from_elems` -> `_gen_xarray_dict_iterator_from_elems`

* (feat): indexing with `DataArray`

* (fix): check h5 store

* (fix):check `DataArray` closer

* (fix): clean up `api.md` from merge

* (fix): remove `read_elem_as_dask` docs reference

* (chore): add notebooks/read_backed_experimental

* (chore): update notebooks

* (refactor): set `pytestmark` at the top

* (chore): clarify comment

* (refactor): add `assert_access_count` method for `AccessTrackingStore`

* (refactor): `read_backed`->`read_lazy`

* (fix): actually `read_backed` -> `read_lazy`

* (chore): time to require `aiohttp` `fsspec` and `zarr` and `requests`

* Merge branch 'main' into ig/xarray_compat

* (chore): update notebook

* (fix): actually only read `index` once

* (chore): add `concat` test

* (feat): add `columns` compat

* (fix): type of subset

* (fix): `MaskedArray` `dtype

* (fix): add `index.setter`

* (chore): add `concat` compat for xarray

* (fix): refactor concat for in-memory

* (chore): add rest of test

* (feat): allow for concat with masked type using dask

* (refactor): own function for concat xarray

* (fix): add basic off-axis mapping without reading in i.e just an index

* (feat): add merge for alt annot

* (fix): notebook

* (fix): NaS in sparse dask

* (chore): add `X` tracker

* (chore): add more robust matrix type tests

* (fix): ok now notebooks?

* (feat): fix additional index load

* (feat): no-load index

* (fix): only use range indices for `{obs,var}`

* (chore): add range index testing

* (fix): ensure `{obs,var}_names` always exists on dataset

* (fix): only use `use_range_index` on `{obs,var}`

* (fix): don't check uniqueness to prevent index load + rename variable

* (fix): check for presence of indexing key

* always return `index` object

* (fix): remove unnecessary check?

* (chore): update notebook

* (fix): docstring class

* (fix): explicit 1d chunking for `concat`

* (chore): change `concat` test name

* (chore): rename test file

* (chore): rename notebook

* (chore): clarify `load_annotation_index`

* (fix): allow concatenation along arbitrary index + indexing test

* (fix): notebook path in docs

* (fix): don't copy column in dataset concat

* (fix): actually test h5

* (feat): add h5ad concat support

* (fix): add docsting example

* (fix): catch warnings

* (fix): format

* (fix): threaded tests annotation index

* (fix): remove xarray test from minimum deps

* (fix): skip experimental backed tests if xarray not installed

* (chore): remove todo

* (feat): add `uns` reading

* (feat): add `Raw` reading + tests

* (chore): make `test-full` shorter

* (fix): stricter type checking

* (fix): dtype casting for concat

* (chore): separate into two cleaner unit tests

* (fix): typing of `make_xarray_extension_dtypes_dask

* (chore): remove comment

* (fix): clean up compat

* (chore): xarray raises import error for `read_lazy`

* (fix) ignore some uncovered lines

* use existing warn import

* merge

* (chore): add awkward `nitpick_ignore` comment

* (refactor): use generator for new datasets

* (chore): docs + types in `merge.py`

* (recactor): use set for `index_name` in `merge.py`

* (refactor): comprehension for `{alt_}annotations_in_memory`

* (chore): types in `lazy_methods.py`

* (chore): `lazy_methods.py` index handling made clearer

* (chore): move comment

* (chore): dedupe `read_params` usage

* (chore): `**kwargs` usage doesn't affect call when empty

* (fix): clean up `_lazy_arrays.py` typing

* (fix): no assert, raise ValueError

* (fix): use `get` instead of membership check + no in-place

* (chore): pytest mark to beginning + `diskfmt` -> `diskfmt` + thread safety using `worker_id`

* (fix): remove resetting key trackers

* (fix): adata only has 4 cchunks in test, udpate comment

* (chore): better use arrange-act-assert

* (chore): ids for boolean params

* (chore): contextlib + better assert objects

* (chore): refactor concatenation for arrange-act-assert

* (fix): notebook submodule

* (fix): use `find_spec` pattern

* (chore): re-insert types for `AccessTrackingStore`

* (chore): dedent docstrings

* (chore): raise error if slots have changed on `ZarrOrHDF5Wrapper`

* (fix): add slots to please xarray

* (chore): remove redefinition

* (refactor): reuse join type

* (fix): mixed type dataframe merging

* (fix): condition for going to memory in mixed typing

* (refactor): mixed type helper function

* (fix): try linking to dask/awkward in docs build

* (fix): awkward array docs

* (chore): `ValueError` -> `AssertionError`

* (fix): clean up `_lazy_arrays.py`

* (fix): `ValueError`->`KeyError` for store

* (chore): add note about `unify_extension_dtypes`

* (chore): add ids

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): move all changes form anndata_elem

* (fix): `read_elem_as_dask`->`read_elem_lazy`

* (chore): refactor `test_read_lazy` fixtures

* Update tests/test_read_lazy.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (chore): restore types

* (fix): do `randint`

* (chore): ermove slots check

* (fix): return read_lazy

* (fix): concating with hdf5 and cluster obviates need for locks works with normal pytest

* (fix): add warning catch

* (chore): good chunk size

* (chore): remove duplicated line

* (chore): use a simpler read mechanism for remote io

* (fix): docs

* (chore): docs note

* (fix): missing element shape

* (fix): correct shape for empty element in concat with dask

* (chore): add test

* (fix): handling of off axis size when no-dask array

* (fix): ruff

* (fix): add `dask` bound for sparse issue

* (chore): relnote

* (fix): undo scientific python changes

* (fix): no `mod` dask

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (chore): add comment about processes

* (feat): add `nullable-string` support

* (fix): test name

* (chore): add a doc string

* (fix): clarify `categories` read behavior

* (chore): doc

* (chore): ellipses for shortened docstring test

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* centralize dev setup

* "useEditorconfig": true

* (fix): dont coerce awkward

* (fix): materialize dask array

* (feat): finish handling of `nullable-string-array`

* (fix): silence warning by using `StringDtype` directly instead of `string`

* (refactor): simplify xarray `dim` -- pandas `index` interplay

* (chore): rename test files

* (refactor): clarify `test_concat_to_memory_var`

* (fix): throw away zeros for numpy-backed dask array

* (chore): loosen restriction on merged part

* (feat): drop requirement that indices must match

* (fix): mark tests properly

* (fix): string dtype issues

* (fix): ensure dummy indices are string typed instead of range for indexing ops

* (chore): raise `TypeError` not `ValueError`

* (chore): pyproject.toml comment

* (refactor): use `doctest_needs` marker

* (fix): remove runtime `pytest` dep

* skip conditionally

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (fix): pytest skipping

* (chore): `zarr` v3 updates for `xarray` (#1888)

* (wip): support for new zarr version

* (chore): create setting for write version

* (fix): pathing issue

* (chore): use `open_group`

* (fix): another `zarr.open`

* (fix): `zarr_write_version` -> `zarr_write_format`

* (feat): batched reading for sparse

* (fix): object codec

* (fix): revert compressed vectors

* (feat): scalar support

* (fix): `open_group` for v3

* (fix): backed sparse copy method

* (fix): add speed-up for zarr by batching indexing

* (fix): no `__len__` on new zarr arrays

* (fix): some v3 fixes

* Specify mode with kwarg

* chore: typing fixes

* (fix): more `create_dataset` args

* format->version

* clear properly

* dynamic format/version

* Centralize version comparison

* Fix most create_dataset errors

* unpin zarr everywhere

* Almost fix docs

* (fix): compression test

* (fix): tracking store

* (fix): `as_group` `mode` arg

* (fix): temporary fix for writing from zarr array

* (fix): more context issues

* (fix): no `chunks` `bool` arg

* (fix): return `item` for array

* (chore): add issue

* Bump scanpydoc version

* (chore): add zarr v2 test

* (chore): add warning for zarr v2

* (fix): fix tracking tests for zarr v2

* (chore): refactor a bit

* (fix): revert zarr v2 test

* (fix): setting on group test

* (fix): reopening issue

* (fix): using zip files for backwards compat

* (fix): temporary fix for `empty`

* (fix): io dispatched keys test

* (fix): sparse array access tracking

* (fix): more reopen zarr store

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (fix): lazy reading

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (fix): ensure v2 group is made

* (fix): add `visititems`

* (fix): point zarr at main

* (fix): don't provide `VLenUTF8Codec` for default string

* (fix): doctest

* (fix): move off the zarr main branch

* (fix): pin zarr in benchmarks

* (feat): zarr v2 handling in tests

* (fix): warning on `zarr.open`

* (fix): `create_array` instead of `create_dataset`

* (chore): remove whitespace

* (fix): bring back zip files after fixing zarr bug

* (chore): relnote

* (chore): clarify comment

* (fix): cleaner `X` check

* (fix): wrong operator

* (fix): read in `zarr` zip correctly

* (chore): relnote

* merge

* (fix): bound zarr

* (chore): unbound zarr

* (chore): update `zarr` dep

* (fix): del `append_data` after use

* (chore): revert h5 sparse_as_dense

* Update src/anndata/_core/sparse_dataset.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): cleaner `fitlers, dtype`

* (fix): type of `write_scalar_group`

* (chore): future warning -> deprecation warning

* Update src/anndata/_io/specs/methods.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (chore): remove nested if-then

* (fix): scalar condition

* (chore): disallow zarr 3

* (chore): update message

* (fix): zarr v3 fixes

* (chore): comment

* (fix): docs

---------

Co-authored-by: Phil Schaf <flying-sheep@web.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* (chore): notebooks

* (fix): notebooks

* (chore): remove zarr import checks

* Merge branch 'main' into ig/xarray_compat

---------

Co-authored-by: Philipp A. <flying-sheep@web.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
ilan-gold added a commit that referenced this pull request Mar 21, 2025
* (chore): imrpoved comments for `Dataset2D`

* (fix): `iloc` is an `attr` not a `meth`

* (fix): release notes

* (fix): `zarr` doc in `read_backed`

* (fix): docs string

* (fix): wording in release note

* (chore): move `_remove_unused_categories` to static method

* (chore): use one `isinstance` call in `coerce_arrays`

* (chore): clean up `read_dataframe`

* (chore): handle case where `chunks` is not needed

* (chore): make reusable `LazyDataStructures`

* (chore): use `Path.suffix`

* (chore): `msg` for `warnings`

* (chore): remove erroneous `Union` in `TypeVar`

* (fix): use `cached_property` for accessing `dtype` + test

* (refactor): use `cached_property` for `categories`

* (refactor): use guard clause in `__getitem__` better

* (chore): type `get_index_dim`

* (fix): `shape` return type

* (refactor): `_subset` guard clause

* (fix): use `Counter`

* (refactor): `fix_known_differences` usage of `as_type`

* (chore): fragment

* (chore): fix the generic problem

* (chore): clean up tests

* Update tests/test_read_backed_experimental.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): should -> shall

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): `_gen_xarray_dict_iterator_from_elems` -> `_gen_xarray_dict_iterator_from_elems`

* (feat): indexing with `DataArray`

* (fix): check h5 store

* (fix):check `DataArray` closer

* (fix): clean up `api.md` from merge

* (fix): remove `read_elem_as_dask` docs reference

* (chore): add notebooks/read_backed_experimental

* (chore): update notebooks

* (refactor): set `pytestmark` at the top

* (chore): clarify comment

* (refactor): add `assert_access_count` method for `AccessTrackingStore`

* (refactor): `read_backed`->`read_lazy`

* (fix): actually `read_backed` -> `read_lazy`

* (chore): time to require `aiohttp` `fsspec` and `zarr` and `requests`

* Merge branch 'main' into ig/xarray_compat

* (chore): update notebook

* (fix): actually only read `index` once

* (chore): add `concat` test

* (feat): add `columns` compat

* (fix): type of subset

* (fix): `MaskedArray` `dtype

* (fix): add `index.setter`

* (chore): add `concat` compat for xarray

* (fix): refactor concat for in-memory

* (chore): add rest of test

* (feat): allow for concat with masked type using dask

* (refactor): own function for concat xarray

* (fix): add basic off-axis mapping without reading in i.e just an index

* (feat): add merge for alt annot

* (fix): notebook

* (fix): NaS in sparse dask

* (chore): add `X` tracker

* (chore): add more robust matrix type tests

* (fix): ok now notebooks?

* (feat): fix additional index load

* (feat): no-load index

* (fix): only use range indices for `{obs,var}`

* (chore): add range index testing

* (fix): ensure `{obs,var}_names` always exists on dataset

* (fix): only use `use_range_index` on `{obs,var}`

* (fix): don't check uniqueness to prevent index load + rename variable

* (fix): check for presence of indexing key

* always return `index` object

* (fix): remove unnecessary check?

* (chore): update notebook

* (fix): docstring class

* (fix): explicit 1d chunking for `concat`

* (chore): change `concat` test name

* (chore): rename test file

* (chore): rename notebook

* (chore): clarify `load_annotation_index`

* (fix): allow concatenation along arbitrary index + indexing test

* (fix): notebook path in docs

* (fix): don't copy column in dataset concat

* (fix): actually test h5

* (feat): add h5ad concat support

* (fix): add docsting example

* (fix): catch warnings

* (fix): format

* (fix): threaded tests annotation index

* (fix): remove xarray test from minimum deps

* (fix): skip experimental backed tests if xarray not installed

* (chore): remove todo

* (feat): add `uns` reading

* (feat): add `Raw` reading + tests

* (chore): make `test-full` shorter

* (fix): stricter type checking

* (fix): dtype casting for concat

* (chore): separate into two cleaner unit tests

* (fix): typing of `make_xarray_extension_dtypes_dask

* (chore): remove comment

* (fix): clean up compat

* (chore): xarray raises import error for `read_lazy`

* (fix) ignore some uncovered lines

* use existing warn import

* merge

* (chore): add awkward `nitpick_ignore` comment

* (refactor): use generator for new datasets

* (chore): docs + types in `merge.py`

* (recactor): use set for `index_name` in `merge.py`

* (refactor): comprehension for `{alt_}annotations_in_memory`

* (chore): types in `lazy_methods.py`

* (chore): `lazy_methods.py` index handling made clearer

* (chore): move comment

* (chore): dedupe `read_params` usage

* (chore): `**kwargs` usage doesn't affect call when empty

* (fix): clean up `_lazy_arrays.py` typing

* (fix): no assert, raise ValueError

* (fix): use `get` instead of membership check + no in-place

* (chore): pytest mark to beginning + `diskfmt` -> `diskfmt` + thread safety using `worker_id`

* (fix): remove resetting key trackers

* (fix): adata only has 4 cchunks in test, udpate comment

* (chore): better use arrange-act-assert

* (chore): ids for boolean params

* (chore): contextlib + better assert objects

* (chore): refactor concatenation for arrange-act-assert

* (fix): notebook submodule

* (fix): use `find_spec` pattern

* (chore): re-insert types for `AccessTrackingStore`

* (chore): dedent docstrings

* (chore): raise error if slots have changed on `ZarrOrHDF5Wrapper`

* (fix): add slots to please xarray

* (chore): remove redefinition

* (refactor): reuse join type

* (fix): mixed type dataframe merging

* (fix): condition for going to memory in mixed typing

* (refactor): mixed type helper function

* (fix): try linking to dask/awkward in docs build

* (fix): awkward array docs

* (chore): `ValueError` -> `AssertionError`

* (fix): clean up `_lazy_arrays.py`

* (fix): `ValueError`->`KeyError` for store

* (chore): add note about `unify_extension_dtypes`

* (chore): add ids

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): move all changes form anndata_elem

* (fix): `read_elem_as_dask`->`read_elem_lazy`

* (chore): refactor `test_read_lazy` fixtures

* Update tests/test_read_lazy.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (chore): restore types

* (fix): do `randint`

* (chore): ermove slots check

* (fix): return read_lazy

* (fix): concating with hdf5 and cluster obviates need for locks works with normal pytest

* (fix): add warning catch

* (chore): good chunk size

* (chore): remove duplicated line

* (chore): use a simpler read mechanism for remote io

* (fix): docs

* (chore): docs note

* (fix): missing element shape

* (fix): correct shape for empty element in concat with dask

* (chore): add test

* (fix): handling of off axis size when no-dask array

* (fix): ruff

* (fix): add `dask` bound for sparse issue

* (chore): relnote

* (fix): undo scientific python changes

* (fix): no `mod` dask

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (chore): add comment about processes

* (feat): add `nullable-string` support

* (fix): test name

* (chore): add a doc string

* (fix): clarify `categories` read behavior

* (chore): doc

* (chore): ellipses for shortened docstring test

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* centralize dev setup

* "useEditorconfig": true

* (fix): dont coerce awkward

* (fix): materialize dask array

* (feat): finish handling of `nullable-string-array`

* (fix): silence warning by using `StringDtype` directly instead of `string`

* (refactor): simplify xarray `dim` -- pandas `index` interplay

* (chore): rename test files

* (refactor): clarify `test_concat_to_memory_var`

* (fix): throw away zeros for numpy-backed dask array

* (chore): loosen restriction on merged part

* (feat): drop requirement that indices must match

* (fix): mark tests properly

* (fix): string dtype issues

* (fix): ensure dummy indices are string typed instead of range for indexing ops

* (chore): raise `TypeError` not `ValueError`

* (chore): pyproject.toml comment

* (refactor): use `doctest_needs` marker

* (fix): remove runtime `pytest` dep

* skip conditionally

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (fix): pytest skipping

* (chore): disallow xarray writes

* (chore): clarify `to_memory` behavior

* (chore): relnote

* (chore): fix relnote + clarification

* (chore): cut down number of tests

* (chore): `zarr` v3 updates for `xarray` (#1888)

* (wip): support for new zarr version

* (chore): create setting for write version

* (fix): pathing issue

* (chore): use `open_group`

* (fix): another `zarr.open`

* (fix): `zarr_write_version` -> `zarr_write_format`

* (feat): batched reading for sparse

* (fix): object codec

* (fix): revert compressed vectors

* (feat): scalar support

* (fix): `open_group` for v3

* (fix): backed sparse copy method

* (fix): add speed-up for zarr by batching indexing

* (fix): no `__len__` on new zarr arrays

* (fix): some v3 fixes

* Specify mode with kwarg

* chore: typing fixes

* (fix): more `create_dataset` args

* format->version

* clear properly

* dynamic format/version

* Centralize version comparison

* Fix most create_dataset errors

* unpin zarr everywhere

* Almost fix docs

* (fix): compression test

* (fix): tracking store

* (fix): `as_group` `mode` arg

* (fix): temporary fix for writing from zarr array

* (fix): more context issues

* (fix): no `chunks` `bool` arg

* (fix): return `item` for array

* (chore): add issue

* Bump scanpydoc version

* (chore): add zarr v2 test

* (chore): add warning for zarr v2

* (fix): fix tracking tests for zarr v2

* (chore): refactor a bit

* (fix): revert zarr v2 test

* (fix): setting on group test

* (fix): reopening issue

* (fix): using zip files for backwards compat

* (fix): temporary fix for `empty`

* (fix): io dispatched keys test

* (fix): sparse array access tracking

* (fix): more reopen zarr store

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (fix): lazy reading

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (fix): ensure v2 group is made

* (fix): add `visititems`

* (fix): point zarr at main

* (fix): don't provide `VLenUTF8Codec` for default string

* (fix): doctest

* (fix): move off the zarr main branch

* (fix): pin zarr in benchmarks

* (feat): zarr v2 handling in tests

* (fix): warning on `zarr.open`

* (fix): `create_array` instead of `create_dataset`

* (chore): remove whitespace

* (fix): bring back zip files after fixing zarr bug

* (chore): relnote

* (chore): clarify comment

* (fix): cleaner `X` check

* (fix): wrong operator

* (fix): read in `zarr` zip correctly

* (chore): relnote

* merge

* (fix): bound zarr

* (chore): unbound zarr

* (chore): update `zarr` dep

* (fix): del `append_data` after use

* (chore): revert h5 sparse_as_dense

* Update src/anndata/_core/sparse_dataset.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): cleaner `fitlers, dtype`

* (fix): type of `write_scalar_group`

* (chore): future warning -> deprecation warning

* Update src/anndata/_io/specs/methods.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (chore): remove nested if-then

* (fix): scalar condition

* (chore): disallow zarr 3

* (chore): update message

* (fix): zarr v3 fixes

* (chore): comment

* (fix): docs

---------

Co-authored-by: Phil Schaf <flying-sheep@web.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* (fix): `psutil`

* (chore): fully test paths

* (chore): remove redundant zarr instal;

* (fix): apply suggestions

* (fix): remove unused parameter

---------

Co-authored-by: Philipp A. <flying-sheep@web.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
barlowa124 pushed a commit to barlowa124/anndata that referenced this pull request Dec 4, 2026
…ng + `read_elem_as_dask` -> `read_elem_lazy` (scverse#1247)

* (fix): change unused category function from method to function

* (fix): actually track keys instead of relying on `deafultdict` behavior

* (chore): test unconsolidated warning

* Update pyproject.toml

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): use `test-full`/`test`

* (fix): typing for `_gen_dataframe`

* (chore): imrpoved comments for `Dataset2D`

* (fix): `iloc` is an `attr` not a `meth`

* (fix): release notes

* (fix): `zarr` doc in `read_backed`

* (fix): docs string

* (fix): wording in release note

* (chore): move `_remove_unused_categories` to static method

* (chore): use one `isinstance` call in `coerce_arrays`

* (chore): clean up `read_dataframe`

* (chore): handle case where `chunks` is not needed

* (chore): make reusable `LazyDataStructures`

* (chore): use `Path.suffix`

* (chore): `msg` for `warnings`

* (chore): remove erroneous `Union` in `TypeVar`

* (fix): use `cached_property` for accessing `dtype` + test

* (refactor): use `cached_property` for `categories`

* (refactor): use guard clause in `__getitem__` better

* (chore): type `get_index_dim`

* (fix): `shape` return type

* (refactor): `_subset` guard clause

* (fix): use `Counter`

* (refactor): `fix_known_differences` usage of `as_type`

* (chore): fragment

* (chore): fix the generic problem

* (chore): clean up tests

* Update tests/test_read_backed_experimental.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): should -> shall

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): `_gen_xarray_dict_iterator_from_elems` -> `_gen_xarray_dict_iterator_from_elems`

* (feat): indexing with `DataArray`

* (fix): check h5 store

* (fix):check `DataArray` closer

* (fix): clean up `api.md` from merge

* (fix): remove `read_elem_as_dask` docs reference

* (chore): add notebooks/read_backed_experimental

* (chore): update notebooks

* (refactor): set `pytestmark` at the top

* (chore): clarify comment

* (refactor): add `assert_access_count` method for `AccessTrackingStore`

* (refactor): `read_backed`->`read_lazy`

* (fix): actually `read_backed` -> `read_lazy`

* (chore): time to require `aiohttp` `fsspec` and `zarr` and `requests`

* Merge branch 'main' into ig/xarray_compat

* (chore): update notebook

* (fix): actually only read `index` once

* (chore): add `concat` test

* (feat): add `columns` compat

* (fix): type of subset

* (fix): `MaskedArray` `dtype

* (fix): add `index.setter`

* (chore): add `concat` compat for xarray

* (fix): refactor concat for in-memory

* (chore): add rest of test

* (feat): allow for concat with masked type using dask

* (refactor): own function for concat xarray

* (fix): add basic off-axis mapping without reading in i.e just an index

* (feat): add merge for alt annot

* (fix): notebook

* (fix): NaS in sparse dask

* (chore): add `X` tracker

* (chore): add more robust matrix type tests

* (fix): ok now notebooks?

* (feat): fix additional index load

* (feat): no-load index

* (fix): only use range indices for `{obs,var}`

* (chore): add range index testing

* (fix): ensure `{obs,var}_names` always exists on dataset

* (fix): only use `use_range_index` on `{obs,var}`

* (fix): don't check uniqueness to prevent index load + rename variable

* (fix): check for presence of indexing key

* always return `index` object

* (fix): remove unnecessary check?

* (chore): update notebook

* (fix): docstring class

* (fix): explicit 1d chunking for `concat`

* (chore): change `concat` test name

* (chore): rename test file

* (chore): rename notebook

* (chore): clarify `load_annotation_index`

* (fix): allow concatenation along arbitrary index + indexing test

* (fix): notebook path in docs

* (fix): don't copy column in dataset concat

* (fix): actually test h5

* (feat): add h5ad concat support

* (fix): add docsting example

* (fix): catch warnings

* (fix): format

* (fix): threaded tests annotation index

* (fix): remove xarray test from minimum deps

* (fix): skip experimental backed tests if xarray not installed

* (chore): remove todo

* (feat): add `uns` reading

* (feat): add `Raw` reading + tests

* (chore): make `test-full` shorter

* (fix): stricter type checking

* (fix): dtype casting for concat

* (chore): separate into two cleaner unit tests

* (fix): typing of `make_xarray_extension_dtypes_dask

* (chore): remove comment

* (fix): clean up compat

* (chore): xarray raises import error for `read_lazy`

* (fix) ignore some uncovered lines

* use existing warn import

* merge

* (chore): add awkward `nitpick_ignore` comment

* (refactor): use generator for new datasets

* (chore): docs + types in `merge.py`

* (recactor): use set for `index_name` in `merge.py`

* (refactor): comprehension for `{alt_}annotations_in_memory`

* (chore): types in `lazy_methods.py`

* (chore): `lazy_methods.py` index handling made clearer

* (chore): move comment

* (chore): dedupe `read_params` usage

* (chore): `**kwargs` usage doesn't affect call when empty

* (fix): clean up `_lazy_arrays.py` typing

* (fix): no assert, raise ValueError

* (fix): use `get` instead of membership check + no in-place

* (chore): pytest mark to beginning + `diskfmt` -> `diskfmt` + thread safety using `worker_id`

* (fix): remove resetting key trackers

* (fix): adata only has 4 cchunks in test, udpate comment

* (chore): better use arrange-act-assert

* (chore): ids for boolean params

* (chore): contextlib + better assert objects

* (chore): refactor concatenation for arrange-act-assert

* (fix): notebook submodule

* (fix): use `find_spec` pattern

* (chore): re-insert types for `AccessTrackingStore`

* (chore): dedent docstrings

* (chore): raise error if slots have changed on `ZarrOrHDF5Wrapper`

* (fix): add slots to please xarray

* (chore): remove redefinition

* (refactor): reuse join type

* (fix): mixed type dataframe merging

* (fix): condition for going to memory in mixed typing

* (refactor): mixed type helper function

* (fix): try linking to dask/awkward in docs build

* (fix): awkward array docs

* (chore): `ValueError` -> `AssertionError`

* (fix): clean up `_lazy_arrays.py`

* (fix): `ValueError`->`KeyError` for store

* (chore): add note about `unify_extension_dtypes`

* (chore): add ids

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): move all changes form anndata_elem

* (fix): `read_elem_as_dask`->`read_elem_lazy`

* (chore): refactor `test_read_lazy` fixtures

* Update tests/test_read_lazy.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (chore): restore types

* (fix): do `randint`

* (chore): ermove slots check

* (fix): return read_lazy

* (fix): concating with hdf5 and cluster obviates need for locks works with normal pytest

* (fix): add warning catch

* (chore): good chunk size

* (chore): remove duplicated line

* (chore): use a simpler read mechanism for remote io

* (fix): docs

* (chore): docs note

* (fix): missing element shape

* (fix): correct shape for empty element in concat with dask

* (chore): add test

* (fix): handling of off axis size when no-dask array

* (fix): ruff

* (fix): add `dask` bound for sparse issue

* (chore): relnote

* (fix): undo scientific python changes

* (fix): no `mod` dask

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (chore): add comment about processes

* (feat): add `nullable-string` support

* (fix): test name

* (chore): add a doc string

* (fix): clarify `categories` read behavior

* (chore): doc

* (chore): ellipses for shortened docstring test

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* centralize dev setup

* "useEditorconfig": true

* (fix): dont coerce awkward

* (fix): materialize dask array

* (feat): finish handling of `nullable-string-array`

* (fix): silence warning by using `StringDtype` directly instead of `string`

* (refactor): simplify xarray `dim` -- pandas `index` interplay

* (chore): rename test files

* (refactor): clarify `test_concat_to_memory_var`

* (fix): throw away zeros for numpy-backed dask array

* (chore): loosen restriction on merged part

* (feat): drop requirement that indices must match

* (fix): mark tests properly

* (fix): string dtype issues

* (fix): ensure dummy indices are string typed instead of range for indexing ops

* (chore): raise `TypeError` not `ValueError`

* (chore): pyproject.toml comment

* (refactor): use `doctest_needs` marker

* (fix): remove runtime `pytest` dep

* skip conditionally

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (fix): pytest skipping

* (chore): `zarr` v3 updates for `xarray` (scverse#1888)

* (wip): support for new zarr version

* (chore): create setting for write version

* (fix): pathing issue

* (chore): use `open_group`

* (fix): another `zarr.open`

* (fix): `zarr_write_version` -> `zarr_write_format`

* (feat): batched reading for sparse

* (fix): object codec

* (fix): revert compressed vectors

* (feat): scalar support

* (fix): `open_group` for v3

* (fix): backed sparse copy method

* (fix): add speed-up for zarr by batching indexing

* (fix): no `__len__` on new zarr arrays

* (fix): some v3 fixes

* Specify mode with kwarg

* chore: typing fixes

* (fix): more `create_dataset` args

* format->version

* clear properly

* dynamic format/version

* Centralize version comparison

* Fix most create_dataset errors

* unpin zarr everywhere

* Almost fix docs

* (fix): compression test

* (fix): tracking store

* (fix): `as_group` `mode` arg

* (fix): temporary fix for writing from zarr array

* (fix): more context issues

* (fix): no `chunks` `bool` arg

* (fix): return `item` for array

* (chore): add issue

* Bump scanpydoc version

* (chore): add zarr v2 test

* (chore): add warning for zarr v2

* (fix): fix tracking tests for zarr v2

* (chore): refactor a bit

* (fix): revert zarr v2 test

* (fix): setting on group test

* (fix): reopening issue

* (fix): using zip files for backwards compat

* (fix): temporary fix for `empty`

* (fix): io dispatched keys test

* (fix): sparse array access tracking

* (fix): more reopen zarr store

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (fix): lazy reading

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (fix): ensure v2 group is made

* (fix): add `visititems`

* (fix): point zarr at main

* (fix): don't provide `VLenUTF8Codec` for default string

* (fix): doctest

* (fix): move off the zarr main branch

* (fix): pin zarr in benchmarks

* (feat): zarr v2 handling in tests

* (fix): warning on `zarr.open`

* (fix): `create_array` instead of `create_dataset`

* (chore): remove whitespace

* (fix): bring back zip files after fixing zarr bug

* (chore): relnote

* (chore): clarify comment

* (fix): cleaner `X` check

* (fix): wrong operator

* (fix): read in `zarr` zip correctly

* (chore): relnote

* merge

* (fix): bound zarr

* (chore): unbound zarr

* (chore): update `zarr` dep

* (fix): del `append_data` after use

* (chore): revert h5 sparse_as_dense

* Update src/anndata/_core/sparse_dataset.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): cleaner `fitlers, dtype`

* (fix): type of `write_scalar_group`

* (chore): future warning -> deprecation warning

* Update src/anndata/_io/specs/methods.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (chore): remove nested if-then

* (fix): scalar condition

* (chore): disallow zarr 3

* (chore): update message

* (fix): zarr v3 fixes

* (chore): comment

* (fix): docs

---------

Co-authored-by: Phil Schaf <flying-sheep@web.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* (chore): notebooks

* (fix): notebooks

* (chore): remove zarr import checks

* Merge branch 'main' into ig/xarray_compat

---------

Co-authored-by: Philipp A. <flying-sheep@web.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
barlowa124 pushed a commit to barlowa124/anndata that referenced this pull request Dec 4, 2026
* (chore): imrpoved comments for `Dataset2D`

* (fix): `iloc` is an `attr` not a `meth`

* (fix): release notes

* (fix): `zarr` doc in `read_backed`

* (fix): docs string

* (fix): wording in release note

* (chore): move `_remove_unused_categories` to static method

* (chore): use one `isinstance` call in `coerce_arrays`

* (chore): clean up `read_dataframe`

* (chore): handle case where `chunks` is not needed

* (chore): make reusable `LazyDataStructures`

* (chore): use `Path.suffix`

* (chore): `msg` for `warnings`

* (chore): remove erroneous `Union` in `TypeVar`

* (fix): use `cached_property` for accessing `dtype` + test

* (refactor): use `cached_property` for `categories`

* (refactor): use guard clause in `__getitem__` better

* (chore): type `get_index_dim`

* (fix): `shape` return type

* (refactor): `_subset` guard clause

* (fix): use `Counter`

* (refactor): `fix_known_differences` usage of `as_type`

* (chore): fragment

* (chore): fix the generic problem

* (chore): clean up tests

* Update tests/test_read_backed_experimental.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): should -> shall

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): `_gen_xarray_dict_iterator_from_elems` -> `_gen_xarray_dict_iterator_from_elems`

* (feat): indexing with `DataArray`

* (fix): check h5 store

* (fix):check `DataArray` closer

* (fix): clean up `api.md` from merge

* (fix): remove `read_elem_as_dask` docs reference

* (chore): add notebooks/read_backed_experimental

* (chore): update notebooks

* (refactor): set `pytestmark` at the top

* (chore): clarify comment

* (refactor): add `assert_access_count` method for `AccessTrackingStore`

* (refactor): `read_backed`->`read_lazy`

* (fix): actually `read_backed` -> `read_lazy`

* (chore): time to require `aiohttp` `fsspec` and `zarr` and `requests`

* Merge branch 'main' into ig/xarray_compat

* (chore): update notebook

* (fix): actually only read `index` once

* (chore): add `concat` test

* (feat): add `columns` compat

* (fix): type of subset

* (fix): `MaskedArray` `dtype

* (fix): add `index.setter`

* (chore): add `concat` compat for xarray

* (fix): refactor concat for in-memory

* (chore): add rest of test

* (feat): allow for concat with masked type using dask

* (refactor): own function for concat xarray

* (fix): add basic off-axis mapping without reading in i.e just an index

* (feat): add merge for alt annot

* (fix): notebook

* (fix): NaS in sparse dask

* (chore): add `X` tracker

* (chore): add more robust matrix type tests

* (fix): ok now notebooks?

* (feat): fix additional index load

* (feat): no-load index

* (fix): only use range indices for `{obs,var}`

* (chore): add range index testing

* (fix): ensure `{obs,var}_names` always exists on dataset

* (fix): only use `use_range_index` on `{obs,var}`

* (fix): don't check uniqueness to prevent index load + rename variable

* (fix): check for presence of indexing key

* always return `index` object

* (fix): remove unnecessary check?

* (chore): update notebook

* (fix): docstring class

* (fix): explicit 1d chunking for `concat`

* (chore): change `concat` test name

* (chore): rename test file

* (chore): rename notebook

* (chore): clarify `load_annotation_index`

* (fix): allow concatenation along arbitrary index + indexing test

* (fix): notebook path in docs

* (fix): don't copy column in dataset concat

* (fix): actually test h5

* (feat): add h5ad concat support

* (fix): add docsting example

* (fix): catch warnings

* (fix): format

* (fix): threaded tests annotation index

* (fix): remove xarray test from minimum deps

* (fix): skip experimental backed tests if xarray not installed

* (chore): remove todo

* (feat): add `uns` reading

* (feat): add `Raw` reading + tests

* (chore): make `test-full` shorter

* (fix): stricter type checking

* (fix): dtype casting for concat

* (chore): separate into two cleaner unit tests

* (fix): typing of `make_xarray_extension_dtypes_dask

* (chore): remove comment

* (fix): clean up compat

* (chore): xarray raises import error for `read_lazy`

* (fix) ignore some uncovered lines

* use existing warn import

* merge

* (chore): add awkward `nitpick_ignore` comment

* (refactor): use generator for new datasets

* (chore): docs + types in `merge.py`

* (recactor): use set for `index_name` in `merge.py`

* (refactor): comprehension for `{alt_}annotations_in_memory`

* (chore): types in `lazy_methods.py`

* (chore): `lazy_methods.py` index handling made clearer

* (chore): move comment

* (chore): dedupe `read_params` usage

* (chore): `**kwargs` usage doesn't affect call when empty

* (fix): clean up `_lazy_arrays.py` typing

* (fix): no assert, raise ValueError

* (fix): use `get` instead of membership check + no in-place

* (chore): pytest mark to beginning + `diskfmt` -> `diskfmt` + thread safety using `worker_id`

* (fix): remove resetting key trackers

* (fix): adata only has 4 cchunks in test, udpate comment

* (chore): better use arrange-act-assert

* (chore): ids for boolean params

* (chore): contextlib + better assert objects

* (chore): refactor concatenation for arrange-act-assert

* (fix): notebook submodule

* (fix): use `find_spec` pattern

* (chore): re-insert types for `AccessTrackingStore`

* (chore): dedent docstrings

* (chore): raise error if slots have changed on `ZarrOrHDF5Wrapper`

* (fix): add slots to please xarray

* (chore): remove redefinition

* (refactor): reuse join type

* (fix): mixed type dataframe merging

* (fix): condition for going to memory in mixed typing

* (refactor): mixed type helper function

* (fix): try linking to dask/awkward in docs build

* (fix): awkward array docs

* (chore): `ValueError` -> `AssertionError`

* (fix): clean up `_lazy_arrays.py`

* (fix): `ValueError`->`KeyError` for store

* (chore): add note about `unify_extension_dtypes`

* (chore): add ids

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): move all changes form anndata_elem

* (fix): `read_elem_as_dask`->`read_elem_lazy`

* (chore): refactor `test_read_lazy` fixtures

* Update tests/test_read_lazy.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (chore): restore types

* (fix): do `randint`

* (chore): ermove slots check

* (fix): return read_lazy

* (fix): concating with hdf5 and cluster obviates need for locks works with normal pytest

* (fix): add warning catch

* (chore): good chunk size

* (chore): remove duplicated line

* (chore): use a simpler read mechanism for remote io

* (fix): docs

* (chore): docs note

* (fix): missing element shape

* (fix): correct shape for empty element in concat with dask

* (chore): add test

* (fix): handling of off axis size when no-dask array

* (fix): ruff

* (fix): add `dask` bound for sparse issue

* (chore): relnote

* (fix): undo scientific python changes

* (fix): no `mod` dask

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (chore): add comment about processes

* (feat): add `nullable-string` support

* (fix): test name

* (chore): add a doc string

* (fix): clarify `categories` read behavior

* (chore): doc

* (chore): ellipses for shortened docstring test

* Apply suggestions from code review

Co-authored-by: Philipp A. <flying-sheep@web.de>

* centralize dev setup

* "useEditorconfig": true

* (fix): dont coerce awkward

* (fix): materialize dask array

* (feat): finish handling of `nullable-string-array`

* (fix): silence warning by using `StringDtype` directly instead of `string`

* (refactor): simplify xarray `dim` -- pandas `index` interplay

* (chore): rename test files

* (refactor): clarify `test_concat_to_memory_var`

* (fix): throw away zeros for numpy-backed dask array

* (chore): loosen restriction on merged part

* (feat): drop requirement that indices must match

* (fix): mark tests properly

* (fix): string dtype issues

* (fix): ensure dummy indices are string typed instead of range for indexing ops

* (chore): raise `TypeError` not `ValueError`

* (chore): pyproject.toml comment

* (refactor): use `doctest_needs` marker

* (fix): remove runtime `pytest` dep

* skip conditionally

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (fix): pytest skipping

* (chore): disallow xarray writes

* (chore): clarify `to_memory` behavior

* (chore): relnote

* (chore): fix relnote + clarification

* (chore): cut down number of tests

* (chore): `zarr` v3 updates for `xarray` (scverse#1888)

* (wip): support for new zarr version

* (chore): create setting for write version

* (fix): pathing issue

* (chore): use `open_group`

* (fix): another `zarr.open`

* (fix): `zarr_write_version` -> `zarr_write_format`

* (feat): batched reading for sparse

* (fix): object codec

* (fix): revert compressed vectors

* (feat): scalar support

* (fix): `open_group` for v3

* (fix): backed sparse copy method

* (fix): add speed-up for zarr by batching indexing

* (fix): no `__len__` on new zarr arrays

* (fix): some v3 fixes

* Specify mode with kwarg

* chore: typing fixes

* (fix): more `create_dataset` args

* format->version

* clear properly

* dynamic format/version

* Centralize version comparison

* Fix most create_dataset errors

* unpin zarr everywhere

* Almost fix docs

* (fix): compression test

* (fix): tracking store

* (fix): `as_group` `mode` arg

* (fix): temporary fix for writing from zarr array

* (fix): more context issues

* (fix): no `chunks` `bool` arg

* (fix): return `item` for array

* (chore): add issue

* Bump scanpydoc version

* (chore): add zarr v2 test

* (chore): add warning for zarr v2

* (fix): fix tracking tests for zarr v2

* (chore): refactor a bit

* (fix): revert zarr v2 test

* (fix): setting on group test

* (fix): reopening issue

* (fix): using zip files for backwards compat

* (fix): temporary fix for `empty`

* (fix): io dispatched keys test

* (fix): sparse array access tracking

* (fix): more reopen zarr store

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (fix): lazy reading

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* (fix): ensure v2 group is made

* (fix): add `visititems`

* (fix): point zarr at main

* (fix): don't provide `VLenUTF8Codec` for default string

* (fix): doctest

* (fix): move off the zarr main branch

* (fix): pin zarr in benchmarks

* (feat): zarr v2 handling in tests

* (fix): warning on `zarr.open`

* (fix): `create_array` instead of `create_dataset`

* (chore): remove whitespace

* (fix): bring back zip files after fixing zarr bug

* (chore): relnote

* (chore): clarify comment

* (fix): cleaner `X` check

* (fix): wrong operator

* (fix): read in `zarr` zip correctly

* (chore): relnote

* merge

* (fix): bound zarr

* (chore): unbound zarr

* (chore): update `zarr` dep

* (fix): del `append_data` after use

* (chore): revert h5 sparse_as_dense

* Update src/anndata/_core/sparse_dataset.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (fix): cleaner `fitlers, dtype`

* (fix): type of `write_scalar_group`

* (chore): future warning -> deprecation warning

* Update src/anndata/_io/specs/methods.py

Co-authored-by: Philipp A. <flying-sheep@web.de>

* (chore): remove nested if-then

* (fix): scalar condition

* (chore): disallow zarr 3

* (chore): update message

* (fix): zarr v3 fixes

* (chore): comment

* (fix): docs

---------

Co-authored-by: Phil Schaf <flying-sheep@web.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* (fix): `psutil`

* (chore): fully test paths

* (chore): remove redundant zarr instal;

* (fix): apply suggestions

* (fix): remove unused parameter

---------

Co-authored-by: Philipp A. <flying-sheep@web.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants