preprocessing/_06a2_find_ica_artifacts
[...]
sub-001 ses-01 A critical error occurred. The error message was: 'list' object has no attribute 'ndim'
Aborting pipeline run. The traceback is:
File "/Users/markpinsk/software/mne-opm/.venv/lib/python3.13/site-packages/mne_bids_pipeline/steps/preprocessing/_06a2_find_ica_artifacts.py", line 483, in find_ica_artifacts
if eog_scores.ndim > 1:
^^^^^^^^^^^^^^^
[FAIL-FAST] Error at line 77. Exiting.
eog_scores is returning a list instead of an array, so .ndim fails.
Wrapping with np.array() worked for me:
_06a2_find_ica_artifacts.py
Line 483: eog_scores = np.array(eog_scores) # ensure ndarray, not list
preprocessing/_06a2_find_ica_artifacts
[...]
sub-001 ses-01 A critical error occurred. The error message was: 'list' object has no attribute 'ndim'
Aborting pipeline run. The traceback is:
File "/Users/markpinsk/software/mne-opm/.venv/lib/python3.13/site-packages/mne_bids_pipeline/steps/preprocessing/_06a2_find_ica_artifacts.py", line 483, in find_ica_artifacts
if eog_scores.ndim > 1:
^^^^^^^^^^^^^^^
[FAIL-FAST] Error at line 77. Exiting.
eog_scores is returning a list instead of an array, so .ndim fails.
Wrapping with np.array() worked for me:
_06a2_find_ica_artifacts.py
Line 483: eog_scores = np.array(eog_scores) # ensure ndarray, not list