From b439a6b3061aab18c45f8418b6a1af38709e24fa Mon Sep 17 00:00:00 2001 From: John Veitch Date: Mon, 8 Jul 2024 08:58:40 +0100 Subject: [PATCH] numpy 2.0: np.NINF -> -np.inf --- cpnest/nest2pos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpnest/nest2pos.py b/cpnest/nest2pos.py index 3181cde..30f3a54 100644 --- a/cpnest/nest2pos.py +++ b/cpnest/nest2pos.py @@ -53,7 +53,7 @@ def compute_weights(data, Nlive): log_vols_start=np.cumsum(np.ones(len(start_data)+1)*np.log1p(-1./Nlive))-np.log1p(-1./Nlive) log_vols_end=np.zeros(len(end_data)) - log_vols_end[-1]=np.NINF + log_vols_end[-1]=-np.inf log_vols_end[0]=log_vols_start[-1]+np.log1p(-1.0/Nlive) for i in range(len(end_data)-1): log_vols_end[i+1]=log_vols_end[i]+np.log1p(-1.0/(Nlive-i))