Commit fbc18bb 1 parent 03e2008 commit fbc18bb Copy full SHA for fbc18bb
File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
try :
9
9
from numpy .typing import DTypeLike , NDArray
10
10
11
- ArrayLike = NDArray [np .float_ ]
11
+ ArrayLike = NDArray [np .float64 ]
12
12
except (ImportError , TypeError ):
13
13
ArrayLike = np .ndarray # type: ignore[misc]
14
14
DTypeLike = np .dtype # type: ignore[misc]
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def handle_joint_attr(
37
37
38
38
# if this is True we have custom cost matrix or moscot cost - in this case we have a custom cost matrix
39
39
if joint_attr .get ("tag" , None ) == "cost_matrix" and (
40
- len (joint_attr ) == 2 or kwargs .get ("attr" , None ) == "obsp"
40
+ len (joint_attr ) == 2 or kwargs .get ("attr" ) == "obsp"
41
41
):
42
42
joint_attr .setdefault ("cost" , "custom" )
43
43
joint_attr .setdefault ("attr" , "obsp" )
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def _get_features(
80
80
attr : Dict [str , Any ],
81
81
) -> ArrayLike :
82
82
data = getattr (adata , attr ["attr" ])
83
- key = attr .get ("key" , None )
83
+ key = attr .get ("key" )
84
84
return data if key is None else data [key ]
85
85
86
86
if self ._src_attr is None :
You can’t perform that action at this time.
0 commit comments