Skip to content

_06a2_find_ica_artifacts crash #8

@mrribbits

Description

@mrribbits

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions