Skip to content

Commit

Permalink
more elegant fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Dec 19, 2024
1 parent 4b65193 commit b4a4905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/anndata/compat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Empty:
pass


Index1D = slice | int | str | np.int64 | np.ndarray
Index1D = slice | int | str | np.int64 | np.ndarray | pd.Series[bool]
IndexRest = Index1D | EllipsisType
Index = (
IndexRest
Expand Down
2 changes: 1 addition & 1 deletion tests/test_concatenate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ def test_concat_outer_aligned_mapping(elem):
del b.obsm[elem]

concated = concat({"a": a, "b": b}, join="outer", label="group")
result = concated.obsm[elem][(concated.obs["group"] == "b").to_numpy()]
result = concated[concated.obs["group"] == "b"].obsm[elem]

check_filled_like(result, elem_name=f"obsm/{elem}")

Expand Down

0 comments on commit b4a4905

Please sign in to comment.