Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat):
read_elem_as_dask
method (#1469)
* (feat): `read_elem_lazy` method * (revert): error message * (refactor): declare `is_csc` reading elem directly in h5 * (chore): `read_elem_lazy` -> `read_elem_as_dask` * (chore): remove string handling * (refactor): use `elem` for h5 where posssble * (chore): remove invlaud syntax * (fix): put dask import inside function * (refactor): try maybe open? * (fix): revert `encoding-version` * (chore): document `create_sparse_store` test function * (chore): sort indices to prevent warning * (fix): remove utility function `make_dask_array` * (chore): `read_sparse_as_dask_h5` -> `read_sparse_as_dask` * (feat): make params of `h5_chunks` and `stride` * (chore): add distributed test * (fix): `TypeVar` bind * (chore): release note * (chore): `0.10.8` -> `0.11.0` * (fix): `ruff` for default `pytest.fixture` `scope` * Apply suggestions from code review Co-authored-by: Philipp A. <[email protected]> * (fix): `Any` to `DaskArray` * (fix): type `make_index` + fix undeclared * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix rest * (fix): use `chunks` kwarg * (feat): expose `chunks` as an option to `read_elem_as_dask` via `dataset_kwargs` * (fix): `test_read_dispatched_null_case` test * (fix): disallowed spread syntax? * (refactor): reuse `compute_chunk_layout_for_axis_shape` functionality * (fix): remove unneeded `slice` arguments * (fix): revert message * (refactor): `make_index` -> `make_block_indexer` * (fix): export from `experimental` * (fix): `callback` signature for `test_read_dispatched_null_case * (chore): `get_elem_name` helper * (chore): use `H5Group` consistently * (refactor): make `chunks` public facing API instead of `dataset_kwargs` * (fix): regsiter for group not array * (chore): add warning test * (chore): make arg order consistent * (feat): add `callback` typing for `read_dispatched` * (chore): use `npt.NDArray` * (fix): remove uneceesary union * (chore): release note * (fix); try protocol docs * (feat): create `InMemoryElem` + `DictElemType` to remove `Any` * (chore): refactor `DictElemType` -> `InMemoryArrayOrScalarType` for reuse * (fix): use `Union` * (fix): more `Union` * (refactor): `InMemoryElem` -> `InMemoryReadElem` * (chore): add needed types to public export + docs fix * (chore): type `write_elem` functions * (chore): create `write_callback` protocol * (chore): export + docs * (fix): add string descriptions * (fix): try sphinx protocol doc * (fix): try ignoring exports * (fix): remap callback internal usages * (fix): add docstring * Discard changes to pyproject.toml * re-add dep * Fix docs * Almost works * works! * (chore): use pascal-case * (feat): type read/write funcs in callback * (fix): use generic for `Read` as well. * (fix): need more aliases * Split table, format * (refactor): move to `_types` file * bump scanpydoc * Some basic syntax fixes * (fix): change `Read{Callback}` type for kwargs * (chore): test `chunks `argument * (fix): type `read_recarray` * (fix): `GroupyStorageType` not `StorageType` * (fix): little type fixes * (fix): clarify `H5File` typing * (fix): dask doc * (fix): dask docs * (fix): typing * (fix): handle case when `chunks` is `None` * (feat): add string-array reading * (fix): remove `string-array` because it is not tested * (refactor): clean up tests * (fix): overfetching problem * Fix circular import * add some typing * fix mapping types * Fix Read/Write * Fix one more * unify names * claift ReadCallback signature * Fix type aliases * (fix): clean up typing to use `RWAble` * (fix): use `Union` * (fix): add qualname override * (fix): ignore dask and masked array * (fix): ignore erroneous class warning * (fix): upgrade `scanpydoc` * (fix): use `MutableMapping` instead of `dict` due to broken docstring * Add data docs * Revert "(fix): use `MutableMapping` instead of `dict` due to broken docstring" This reverts commit 79d3fdc. * (fix): add clarification * Simplify * (fix): remove double `dask` intersphinx * (fix): remove `_types.DaskArray` from type checking block * (refactor): use `block_info` for resolving fetch location * (fix): dtype for reading * (fix): ignore import cycle problem (why??) * (fix): add issue * (fix): subclass `Reader` to remove `datasetkwargs` * (fix): add message tp errpr * Update tests/test_io_elementwise.py Co-authored-by: Isaac Virshup <[email protected]> * (fix): correct `self.callback` check * (fix): erroneous diffs * (fix): extra `read_elem` `dataset_kwargs` * (fix): remove more `dataset_kwargs` nonsense * (chore): add docs * (fix): use `block_info` for dense * (fix): more erroneous diffs * (fix): use context again * (fix): change size by dimension in tests * (refactor): clean up `get_elem_name` * (fix): try new sphinx for error * (fix): return type * (fix): protocol for reading * (fix): bring back ignored warning * Fix docs * almost fix typing * add wrapper * move into type checking * (fix): small type fxes * block info types * simplify * rename * simplify more --------- Co-authored-by: Philipp A. <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Isaac Virshup <[email protected]>
- Loading branch information