Skip to content

Commit

Permalink
Remove deprecated np.bool. (#102)
Browse files Browse the repository at this point in the history
* remove np.bool

* move to bool_
  • Loading branch information
hmacdope authored Dec 20, 2022
1 parent b1f5dd8 commit 162c301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytng/pytng.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ cdef class TNGFileIterator:
"Boolean index must match length of trajectory")

# Avoid having list of bools
frame = np.asarray(frame, dtype=np.bool)
frame = np.asarray(frame, dtype=np.bool_)
# Convert bool array to int array
frame = np.arange(len(self))[frame]

Expand Down

0 comments on commit 162c301

Please sign in to comment.