Skip to content

Commit 99bf9ca

Browse files
authored
Fix shape check (#68)
1 parent 66b4c66 commit 99bf9ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fmripost_aroma/interfaces/confounds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def _get_ica_confounds(mixing, aroma_features, skip_vols, newpath=None):
7272
aroma_features_df['classification'] != 'rejected'
7373
].index.values
7474
mixing_arr = np.loadtxt(mixing, ndmin=2)
75-
n_vols = mixing_arr.shape[0]
76-
if n_vols != aroma_features_df.shape[0]:
75+
n_comps = mixing_arr.shape[1]
76+
if n_comps != aroma_features_df.shape[0]:
7777
raise ValueError('Mixing matrix and AROMA features do not match')
7878

7979
# Prepare output paths

0 commit comments

Comments
 (0)