Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Use int instead of numpy.int (#1504)
Browse files Browse the repository at this point in the history
* fix numpy 1.20 np.int deprecation

* add author and changelog
  • Loading branch information
sroet authored Jul 20, 2021
1 parent 366ce03 commit d6eba9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ Stephan Doerr
Simon Olsson
Brooke Husic
Tim Hempel
Sander Roet
3 changes: 2 additions & 1 deletion doc/source/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Changelog
- serialization: fixed bug in function which checked for h5 serialization options.
- :code:`n_jobs` is handled consistently, allows only for :code:`None` or positive integers and when
determined from hardware, falls back to logical number of cpus. :pr:`1488`

- Use :code:`int` instead of :code:`numpy.int` to solve :code:`numpy` 1.20
DeprecationWarning :pr:`1504`

2.5.7 (9-24-2019)
-----------------
Expand Down
2 changes: 1 addition & 1 deletion pyemma/coordinates/data/featurization/featurizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def _check_indices(self, pair_inds, pair_n=2):
"""ensure pairs are valid (shapes, all atom indices available?, etc.)
"""

pair_inds = np.array(pair_inds).astype(dtype=np.int, casting='safe')
pair_inds = np.array(pair_inds).astype(dtype=int, casting='safe')

if pair_inds.ndim != 2:
raise ValueError("pair indices has to be a matrix.")
Expand Down

0 comments on commit d6eba9d

Please sign in to comment.