Skip to content

Commit

Permalink
remove old np.int
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesBuchner committed Jul 27, 2023
1 parent eadb4e3 commit 377f9b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions multinest_marginals_fancy.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def resample_equal(samples, weights, rstate=None):
positions = (rstate.random() + np.arange(nsamples)) / nsamples

# Resample the data.
idx = np.zeros(nsamples, dtype=np.int)
idx = np.zeros(nsamples, dtype=int)
cumulative_sum = np.cumsum(weights)
i, j = 0, 0
while i < nsamples:
Expand Down Expand Up @@ -1680,4 +1680,3 @@ def _hist2d(x, y, smooth=0.02, span=None, weights=None, levels=None,
plt.savefig(prefix + 'cornerp.pdf', bbox_inches='tight')
plt.savefig(prefix + 'cornerp.png', bbox_inches='tight')
plt.close()

0 comments on commit 377f9b2

Please sign in to comment.