Skip to content

Commit

Permalink
remove deprecated np.float
Browse files Browse the repository at this point in the history
  • Loading branch information
johnveitch committed May 20, 2024
1 parent cc8853a commit 8ce46af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpnest/NestedSampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def get_worst_n_live_points(self, n):
for evolution
"""
self.worst = np.arange(n)
self.logLmin.value = np.float(self.params[n-1].logL)
self.logLmin.value = float(self.params[n-1].logL)
return self.logLmin.value

def check_insertion_indices(self, rolling=True, filename=None):
Expand Down
2 changes: 1 addition & 1 deletion cpnest/proposal.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def gradient(self, q):
dV: :obj:`numpy.ndarray` gradient evaluated at q
"""
dV = self.dV(q)
return dV.view(np.float64)
return dV.view(float)

def update_momenta_distribution(self):
"""
Expand Down

0 comments on commit 8ce46af

Please sign in to comment.