Skip to content

Commit 3ab38fa

Browse files
committed
debug
1 parent 229c39a commit 3ab38fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

grnndata/GRNAnnData.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def copy(self, filename: str | None = None) -> "GRNAnnData":
6363

6464
def __getitem__(self, index) -> "GRNAnnData":
6565
"""Return a sliced view or copy of the object."""
66-
sliced_adata = super().__getitem__(index)
66+
sliced_adata = super().__getitem__(index).copy()
6767

6868
# If slicing resulted in something other than AnnData (e.g., a scalar), return it directly
6969
if not isinstance(sliced_adata, AnnData):

0 commit comments

Comments
 (0)