Skip to content

Commit 6eb85be

Browse files
committed
fix _X which raises error when view
1 parent 7e17b3f commit 6eb85be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

anndata/_core/anndata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ def _inplace_subset_obs(self, index: Index1D):
11921192
Same as `adata = adata[index, :]`, but inplace.
11931193
"""
11941194
adata_subset = self[index].copy()
1195-
self._init_as_actual(adata_subset, dtype=self._X.dtype)
1195+
self._init_as_actual(adata_subset, dtype=self.X.dtype)
11961196

11971197
# TODO: Update, possibly remove
11981198
def __setitem__(

0 commit comments

Comments
 (0)