From c43c5e2dfb7ff911f6b04071a00cbb770952e3e2 Mon Sep 17 00:00:00 2001 From: Isaac Virshup Date: Wed, 28 Aug 2024 16:52:21 -0700 Subject: [PATCH] Make n-dimensional --- src/anndata/_io/specs/methods.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/anndata/_io/specs/methods.py b/src/anndata/_io/specs/methods.py index 4b735b4c1..ce8e46218 100644 --- a/src/anndata/_io/specs/methods.py +++ b/src/anndata/_io/specs/methods.py @@ -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"))