Skip to content

Commit

Permalink
ref: DeprecationWarning: np.int from numpy 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jun 5, 2021
1 parent 95e6627 commit e64ebea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
1.7.3
- build: move windows pipeline to GH Actions
- ref: better warning traceback for deprecated weight_cp method
- ref: DeprecationWarning: np.int from numpy 1.20
1.7.2
- build: use oldest-supported-numpy in pyproject.toml
1.7.1
Expand Down
2 changes: 1 addition & 1 deletion nanite/rate/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def feat_con_apr_flatness(self):
r_bl = self.datares_apr[blidx]
r_bl = r_bl[~np.isnan(r_bl)]
# perform gaussian blur
sigma = max(5, (np.int(r_bl.shape[0]/120)//2)*2+1)
sigma = max(5, (int(r_bl.shape[0]/120)//2)*2+1)
y = spfilt.gaussian_filter1d(r_bl, sigma=sigma)
if len(y) > 2:
grad = np.gradient(y)
Expand Down

0 comments on commit e64ebea

Please sign in to comment.