Skip to content

Commit f30b999

Browse files
Fix error for np.bool with numpy 1.24.0
- Deprecated since `numpy 1.20.0`, was now removed - See https://numpy.org/devdocs/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecated
1 parent dd74494 commit f30b999

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)