Skip to content

Commit c7257ce

Browse files
authored
Merge pull request #764 from HippocampusGirl/maint/1.3.x
Fix error for `np.bool` with `numpy 1.24.0`
2 parents f8f5394 + f30b999 commit c7257ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

niworkflows/viz/plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ def confounds_correlation_plot(
975975
ax0 = plt.subplot(gs[0, :10])
976976
ax1 = plt.subplot(gs[0, 11:])
977977

978-
mask = np.zeros_like(corr, dtype=np.bool)
978+
mask = np.zeros_like(corr, dtype=bool)
979979
mask[np.triu_indices_from(mask)] = True
980980
sns.heatmap(corr, linewidths=0.5, cmap="coolwarm", center=0, square=True, ax=ax0)
981981
ax0.tick_params(axis="both", which="both", width=0)

0 commit comments

Comments
 (0)