Skip to content

Commit

Permalink
replace np.float_ with np.float64
Browse files Browse the repository at this point in the history
  • Loading branch information
mkanai committed Oct 17, 2024
1 parent 8097704 commit 2e15c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scdrs/method.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,14 +1052,14 @@ def gearys_c(adata, vals):
"""
graph = adata.obsp["connectivities"]
assert graph.shape[0] == graph.shape[1]
graph_data = graph.data.astype(np.float_, copy=False)
graph_data = graph.data.astype(np.float64, copy=False)
assert graph.shape[0] == vals.shape[0]
assert np.ndim(vals) == 1

W = graph_data.sum()
N = len(graph.indptr) - 1
vals_bar = vals.mean()
vals = vals.astype(np.float_)
vals = vals.astype(np.float64)

# numerators
total = 0.0
Expand Down

0 comments on commit 2e15c33

Please sign in to comment.