Skip to content

Commit

Permalink
Numpy 2.0 drops support for NaN and NAN
Browse files Browse the repository at this point in the history
  • Loading branch information
k1o0 committed Nov 7, 2024
1 parent 2ec85ad commit a1f6d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ibldsp/voltage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a1f6d72

Please sign in to comment.