Skip to content

Commit

Permalink
Merge pull request #846 from tsalo/fix-correlationplot
Browse files Browse the repository at this point in the history
Correctly use `ignore_initial_volumes` in `ConfoundsCorrelationPlot`
  • Loading branch information
effigies authored Dec 11, 2023
2 parents f15c091 + 85adcdd commit 8906e8c
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 8906e8c

Please sign in to comment.