From 5d5b065ba50e3143252dea4ef66368b145d87763 Mon Sep 17 00:00:00 2001 From: Jacob Zimmerman Date: Thu, 31 Oct 2024 04:32:40 -0700 Subject: [PATCH] FIX: Gracefully warn when no motion components are found (#83) --- .zenodo.json | 5 +++++ src/fmripost_aroma/interfaces/confounds.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.zenodo.json b/.zenodo.json index 7034140..bc905cb 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -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": [ diff --git a/src/fmripost_aroma/interfaces/confounds.py b/src/fmripost_aroma/interfaces/confounds.py index fd6489f..6de5cd4 100644 --- a/src/fmripost_aroma/interfaces/confounds.py +++ b/src/fmripost_aroma/interfaces/confounds.py @@ -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