From 124dc0434884b9884c41a30b4c9db602afc8428c Mon Sep 17 00:00:00 2001 From: visserle <99926564+visserle@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:18:27 +0200 Subject: [PATCH] >`np.Inf` was removed in the NumPy 2.0 release. Use `np.inf` instead. --- neurokit2/eda/eda_phasic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neurokit2/eda/eda_phasic.py b/neurokit2/eda/eda_phasic.py index f19361a676..ad740012e5 100644 --- a/neurokit2/eda/eda_phasic.py +++ b/neurokit2/eda/eda_phasic.py @@ -584,7 +584,7 @@ def lasso(R, s, sampling_rate, maxIters, epsilon): ) ATv = np.matmul(R.transpose(), v).flatten() - gammaI = np.Inf + gammaI = np.inf removeIndices = [] inactiveSet = np.arange(0, W) @@ -603,7 +603,7 @@ def lasso(R, s, sampling_rate, maxIters, epsilon): epsilon = 1e-12 gammaArr = (lmbda - c[inactiveSet]) / (1 - ATv[inactiveSet] + epsilon) - gammaArr[gammaArr < zeroTol] = np.Inf + gammaArr[gammaArr < zeroTol] = np.inf gammaIc = np.min(gammaArr) # Imin = np.argmin(gammaArr) newIndices = inactiveSet[(np.abs(gammaArr - gammaIc) < zeroTol)]