From 24a0dcfea667bcb7f62291a1c221eda919269399 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 20 Sep 2024 14:10:06 -0400 Subject: [PATCH] Define padded mixing arr if skip_vols are 0 (#69) --- src/fmripost_aroma/interfaces/confounds.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fmripost_aroma/interfaces/confounds.py b/src/fmripost_aroma/interfaces/confounds.py index 1958b1c..fd6489f 100644 --- a/src/fmripost_aroma/interfaces/confounds.py +++ b/src/fmripost_aroma/interfaces/confounds.py @@ -81,6 +81,7 @@ def _get_ica_confounds(mixing, aroma_features, skip_vols, newpath=None): aroma_confounds = os.path.join(newpath, 'AROMAAggrCompAROMAConfounds.tsv') # pad mixing_arr with rows of zeros corresponding to number of non steady-state volumes + padded_mixing_arr = mixing_arr.copy() if skip_vols > 0: zeros = np.zeros([skip_vols, mixing_arr.shape[1]]) padded_mixing_arr = np.vstack([zeros, mixing_arr])