From 99bf9ca862aebb32375c63a02d1b8ef3cd2a5aea Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 20 Sep 2024 12:20:49 -0400 Subject: [PATCH] Fix shape check (#68) --- src/fmripost_aroma/interfaces/confounds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fmripost_aroma/interfaces/confounds.py b/src/fmripost_aroma/interfaces/confounds.py index 7200ff3..1958b1c 100644 --- a/src/fmripost_aroma/interfaces/confounds.py +++ b/src/fmripost_aroma/interfaces/confounds.py @@ -72,8 +72,8 @@ def _get_ica_confounds(mixing, aroma_features, skip_vols, newpath=None): aroma_features_df['classification'] != 'rejected' ].index.values mixing_arr = np.loadtxt(mixing, ndmin=2) - n_vols = mixing_arr.shape[0] - if n_vols != aroma_features_df.shape[0]: + n_comps = mixing_arr.shape[1] + if n_comps != aroma_features_df.shape[0]: raise ValueError('Mixing matrix and AROMA features do not match') # Prepare output paths