-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Unexpected drop_log behaviour when subsetting epochs #12953
Comments
why not, although it's already dropped. Can you explain how you use the
drop_log for your analysis? Does it cause a bug for example in
plot_drop_log where it would say that "EEG044" is causing a drop for your
epoch selection??
… Message ID: ***@***.***>
|
I'm computing mean/std of dropped epochs over subjects. For this I need absolute counts of dropped epochs per subject. Similarly to plot_drop_log, I get it from drop_log:
Yes, it actually does. EEG044 appears on both stim and blank plots. |
I am personally enclined to say then that the change could be done as a bug fix |
I think appending |
Description of the problem
Bad epoch from irrelevant condition isn't marked as "IGNORED" in drop_log.
Expected results
"IGNORED" is added to the irrelevant epochs even when they're bad.
Actual results
For example: I have only two conditions, either 'stim' or 'blank'.
For
epochs['stim'].drop_log
the output is:(('IGNORED',), (), ('EEG044',), (), (), ...
While
epochs['blank'].drop_log
returns:((), ('IGNORED',), ('EEG044',), ('IGNORED',), ('IGNORED',), ...
Note how the third epoch isn't ignored in either condition.
Additional information
Platform Windows-11-10.0.22631-SP0
Python 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
Executable c:\Users\gennadiyb\Documents\erp.venv\Scripts\python.exe
CPU Intel64 Family 6 Model 158 Stepping 10, GenuineIntel (12 cores)
Memory 31.9 GB
Core
├☑ mne 1.8.0 (latest release)
├☑ numpy 2.1.2 (OpenBLAS 0.3.27 with 12 threads)
├☑ scipy 1.14.1
└☑ matplotlib 3.9.2 (backend=module://matplotlib_inline.backend_inline)
Numerical (optional)
├☑ pandas 2.2.3
└☐ unavailable sklearn, numba, nibabel, nilearn, dipy, openmeeg, cupy, h5io, h5py
Visualization (optional)
├☑ qtpy 2.4.1 (PyQt6=6.7.1)
├☑ pyqtgraph 0.13.7
├☑ mne-qt-browser 0.6.3
├☑ ipywidgets 8.1.5
└☐ unavailable pyvista, pyvistaqt, vtk, ipympl, trame_client, trame_server, trame_vtk, trame_vuetify
Ecosystem (optional)
└☐ unavailable mne-bids, mne-nirs, mne-features, mne-connectivity, mne-icalabel, mne-bids-pipeline, neo, eeglabio, edfio, mffpy, pybv
The text was updated successfully, but these errors were encountered: