Skip to content

Commit

Permalink
Use the ignore_initial_volumes param.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Dec 11, 2023
1 parent f15c091 commit 85adcdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion niworkflows/viz/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,8 @@ def confounds_correlation_plot(
confounds_data = confounds_data[list(columns)]

confounds_data = confounds_data.loc[
:, np.logical_not(np.isclose(confounds_data.var(skipna=True), 0))
ignore_initial_volumes:,
np.logical_not(np.isclose(confounds_data.var(skipna=True), 0)),
]
corr = confounds_data.corr()

Expand Down

0 comments on commit 85adcdd

Please sign in to comment.