From a1f6d72310c29a83049d311f3bec9aa91fa87ce2 Mon Sep 17 00:00:00 2001 From: Miles Wells Date: Thu, 7 Nov 2024 18:19:34 +0200 Subject: [PATCH] Numpy 2.0 drops support for NaN and NAN --- src/ibldsp/voltage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ibldsp/voltage.py b/src/ibldsp/voltage.py index e68aad3..5686b2b 100644 --- a/src/ibldsp/voltage.py +++ b/src/ibldsp/voltage.py @@ -871,7 +871,7 @@ def current_source_density(lfp, h, method="diff", sigma=1 / 3): :param sigma: conductivity, defaults to 1/3 S.m-1 :return: """ - csd = np.zeros(lfp.shape, dtype=np.float64) * np.NAN + csd = np.zeros(lfp.shape, dtype=np.float64) * np.nan xy = h["x"] + 1j * h["y"] for col in np.unique(h["col"]): ind = np.where(h["col"] == col)[0]