Skip to content

Commit

Permalink
numpy 2.0: np.NINF -> -np.inf
Browse files Browse the repository at this point in the history
  • Loading branch information
johnveitch committed Jul 8, 2024
1 parent 8ce46af commit b439a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpnest/nest2pos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b439a6b

Please sign in to comment.