From 85adcddb712636cbffdc3874de97af9db1e41774 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Mon, 11 Dec 2023 13:19:14 -0500 Subject: [PATCH] Use the ignore_initial_volumes param. --- niworkflows/viz/plots.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/niworkflows/viz/plots.py b/niworkflows/viz/plots.py index ebcf90ebe2b..b1ffb219097 100644 --- a/niworkflows/viz/plots.py +++ b/niworkflows/viz/plots.py @@ -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()