Skip to content

Commit

Permalink
Remove deprecated np.bool
Browse files Browse the repository at this point in the history
  • Loading branch information
emdupre committed Sep 8, 2023
1 parent 961a636 commit f8da3fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmralign/tests/test_piecewise.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def to_niimgs(X, dim):
p = np.prod(dim)
assert len(dim) == 3
assert X.shape[-1] <= p
mask = np.zeros(p).astype(np.bool)
mask = np.zeros(p).astype(bool)
mask[: X.shape[-1]] = 1
assert mask.sum() == X.shape[1]
mask = mask.reshape(dim)
Expand Down

0 comments on commit f8da3fa

Please sign in to comment.