Skip to content

Commit 8906e8c

Browse files
authored
Merge pull request #846 from tsalo/fix-correlationplot
Correctly use `ignore_initial_volumes` in `ConfoundsCorrelationPlot`
2 parents f15c091 + 85adcdd commit 8906e8c

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)