Skip to content

Commit

Permalink
(feat): add string-array reading
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold committed Jul 9, 2024
1 parent eabaf35 commit 4c398c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/anndata/_io/specs/lazy_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def make_dask_chunk(block_id: tuple[int, int]):
return da_mtx


@_LAZY_REGISTRY.register_read(H5Array, IOSpec("string-array", "0.2.0"))
@_LAZY_REGISTRY.register_read(H5Array, IOSpec("array", "0.2.0"))
def read_h5_array(
elem: H5Array,
Expand Down Expand Up @@ -182,6 +183,7 @@ def make_dask_chunk(block_id: tuple[int, int]):
)


@_LAZY_REGISTRY.register_read(ZarrArray, IOSpec("string-array", "0.2.0"))
@_LAZY_REGISTRY.register_read(ZarrArray, IOSpec("array", "0.2.0"))
def read_zarr_array(
elem: ZarrArray,
Expand Down

0 comments on commit 4c398c3

Please sign in to comment.