Skip to content

Commit 3652f16

Browse files
authored
Merge pull request #707 from jhlegarreta/FixNumpyissubdtypeMethodFutureWarningDeprecation
BUG: Fix future warning on use of `np.issubdtype`.
2 parents a995710 + fb76411 commit 3652f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/streamlines/array_sequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def is_array_sequence(obj):
2020
def is_ndarray_of_int_or_bool(obj):
2121
return (isinstance(obj, np.ndarray) and
2222
(np.issubdtype(obj.dtype, np.integer) or
23-
np.issubdtype(obj.dtype, np.bool)))
23+
np.issubdtype(obj.dtype, np.bool_)))
2424

2525

2626
class _BuildCache(object):

0 commit comments

Comments
 (0)