Skip to content

Commit

Permalink
Merge pull request #473 from gschuette/master
Browse files Browse the repository at this point in the history
Replaced np.int with int in adaptive_coarsegrain
  • Loading branch information
nvictus authored Jan 8, 2024
2 parents 8af2b10 + 5d936f8 commit 0c516f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cooltools/lib/numutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ def _expand(ar, counts=None):
Norig = ar.shape[0]
Nlog = np.log2(Norig)
if not np.allclose(Nlog, np.rint(Nlog)):
newN = np.int(2 ** np.ceil(Nlog)) # next power-of-two sized matrix
newN = int(2 ** np.ceil(Nlog)) # next power-of-two sized matrix
newar = np.empty((newN, newN), dtype=float) # fitting things in there
newar[:] = np.nan
newcountar = np.zeros((newN, newN), dtype=float)
Expand Down

0 comments on commit 0c516f4

Please sign in to comment.