-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling of missing EOG/ECG channels #1021
Comments
For EOG/ECG missing, I think once you get this message:
it shouldn't actually emit an error anyway. But actually the error isn't during ECG component detection, but during the start of EOG looks like: mne-bids-pipeline/mne_bids_pipeline/steps/preprocessing/_06a2_find_ica_artifacts.py Lines 218 to 226 in 9ab8472
So this does bring up the question of how to handle when the channel name is missing for a given subject. To me the best behavior here would be:
(2) could be fairly easily solvable I think if we allowed (and pydantic handles nicely):
where the keys are subject names. Then your code could be:
or similar. WDYT? (For on_error not working, I opened #1022) |
cc @hoechenberger @drammock as this ☝️ brings up a larger issue of how to handle subject-by-subject variability for variables in general. The idea I propose above is to have a |
Coming back to this issue: I have added the missing channels as flat lines, however then the pipeline fails with
And this prevents the ICA solution from being saved.
Any idea how I can still use that subject? |
This looks like a bug, most likely in MNE-Python (and most likely someplace we do |
... you might need to run with |
Ah, yes, it is indeed an error of |
I have a dataset in which for some participants, the EOG or ECG is missing.
In this case, the ICA ECG detection raises a critical error, even when
on_error='continue'
Is there any way to include the same participant in the pipeline and simply skip the ICA-ECG removal (without adding a dummy channel to the original data). Or to make
on_error
work as indented?The text was updated successfully, but these errors were encountered: