Skip to content

Commit

Permalink
Make n-dimensional
Browse files Browse the repository at this point in the history
  • Loading branch information
ivirshup committed Aug 28, 2024
1 parent 232bee4 commit c43c5e2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/anndata/_io/specs/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,7 @@ def _iter_chunks_for_copy(elem, dest):
n_rows = max(
entry_chunk_size // shape[0], 1000
) # Number of rows that works out to
return zip(
(slice(i, min(i + n_rows, shape[0])) for i in range(0, shape[0], n_rows)),
(slice(None) for _ in range(0, shape[0], n_rows)),
)
return (slice(i, min(i + n_rows, shape[0])) for i in range(0, shape[0], n_rows))


@_REGISTRY.register_write(H5Group, H5Array, IOSpec("array", "0.2.0"))
Expand Down

0 comments on commit c43c5e2

Please sign in to comment.