From 2e15c3397167baff01e0bd29f319d9d93487b68f Mon Sep 17 00:00:00 2001 From: Masahiro Kanai Date: Thu, 17 Oct 2024 14:20:03 -0400 Subject: [PATCH] replace np.float_ with np.float64 --- scdrs/method.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scdrs/method.py b/scdrs/method.py index b401453..2cd1f55 100644 --- a/scdrs/method.py +++ b/scdrs/method.py @@ -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