Skip to content

Commit

Permalink
FIX: Gracefully warn when no motion components are found (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
jczimm authored Oct 31, 2024
1 parent 8cba0aa commit 5d5b065
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
},
{
"name": "Caballero Gaudes, Cesar"
},
{
"affiliation": "Department of Psychology, University of Southern California",
"name": "Zimmerman, Jacob C.",
"orcid": "0000-0002-6010-8086"
}
],
"creators": [
Expand Down
2 changes: 1 addition & 1 deletion src/fmripost_aroma/interfaces/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _get_ica_confounds(mixing, aroma_features, skip_vols, newpath=None):

# Return dummy list of ones if no noise components were found
if motion_ics.size == 0:
config.loggers.interfaces.warning('No noise components were classified')
config.loggers.interface.warning('No noise components were classified')
return None, mixing_out

# return dummy lists of zeros if no signal components were found
Expand Down

0 comments on commit 5d5b065

Please sign in to comment.