Skip to content

Commit 85adcdd

Browse files
committed
Use the ignore_initial_volumes param.
1 parent f15c091 commit 85adcdd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

niworkflows/viz/plots.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,8 @@ def confounds_correlation_plot(
910910
confounds_data = confounds_data[list(columns)]
911911

912912
confounds_data = confounds_data.loc[
913-
:, np.logical_not(np.isclose(confounds_data.var(skipna=True), 0))
913+
ignore_initial_volumes:,
914+
np.logical_not(np.isclose(confounds_data.var(skipna=True), 0)),
914915
]
915916
corr = confounds_data.corr()
916917

0 commit comments

Comments
 (0)