We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 229c39a commit 3ab38faCopy full SHA for 3ab38fa
1 file changed
grnndata/GRNAnnData.py
@@ -63,7 +63,7 @@ def copy(self, filename: str | None = None) -> "GRNAnnData":
63
64
def __getitem__(self, index) -> "GRNAnnData":
65
"""Return a sliced view or copy of the object."""
66
- sliced_adata = super().__getitem__(index)
+ sliced_adata = super().__getitem__(index).copy()
67
68
# If slicing resulted in something other than AnnData (e.g., a scalar), return it directly
69
if not isinstance(sliced_adata, AnnData):
0 commit comments