Skip to content

Commit

Permalink
Fix check.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Sep 20, 2024
1 parent 66b4c66 commit 1fd30dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fmripost_aroma/interfaces/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fd30dd

Please sign in to comment.