Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2024
1 parent 03091fc commit 17073d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/moscot/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
try:
from numpy.typing import DTypeLike, NDArray

ArrayLike = NDArray[np.float_]
ArrayLike = NDArray[np.float64]
except (ImportError, TypeError):
ArrayLike = np.ndarray # type: ignore[misc]
DTypeLike = np.dtype # type: ignore[misc]
Expand Down
2 changes: 1 addition & 1 deletion src/moscot/problems/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def handle_joint_attr(

# if this is True we have custom cost matrix or moscot cost - in this case we have a custom cost matrix
if joint_attr.get("tag", None) == "cost_matrix" and (
len(joint_attr) == 2 or kwargs.get("attr", None) == "obsp"
len(joint_attr) == 2 or kwargs.get("attr") == "obsp"
):
joint_attr.setdefault("cost", "custom")
joint_attr.setdefault("attr", "obsp")
Expand Down
2 changes: 1 addition & 1 deletion src/moscot/problems/cross_modality/_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _get_features(
attr: Dict[str, Any],
) -> ArrayLike:
data = getattr(adata, attr["attr"])
key = attr.get("key", None)
key = attr.get("key")
return data if key is None else data[key]

if self._src_attr is None:
Expand Down

0 comments on commit 17073d1

Please sign in to comment.