Skip to content

Commit

Permalink
Update confounds.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Sep 20, 2024
1 parent deb8025 commit 4dddf70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fmripost_aroma/interfaces/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def _get_ica_confounds(mixing, aroma_features, skip_vols, newpath=None):
].index.values
mixing_arr = np.loadtxt(mixing, ndmin=2)
n_vols = mixing_arr.shape[0]

Check warning on line 75 in src/fmripost_aroma/interfaces/confounds.py

View check run for this annotation

Codecov / codecov/patch

src/fmripost_aroma/interfaces/confounds.py#L75

Added line #L75 was not covered by tests
assert n_vols == aroma_features_df.shape[0], 'Mixing matrix and AROMA features do not match'
if n_vols != aroma_features_df.shape[0]:
raise ValueError('Mixing matrix and AROMA features do not match')

Check warning on line 77 in src/fmripost_aroma/interfaces/confounds.py

View check run for this annotation

Codecov / codecov/patch

src/fmripost_aroma/interfaces/confounds.py#L77

Added line #L77 was not covered by tests

# Prepare output paths
mixing_out = os.path.join(newpath, 'mixing.tsv')
Expand Down

0 comments on commit 4dddf70

Please sign in to comment.