Potential bug in eeglabio exporting

Open
#13,535 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
matlab, python
Domain
data

Research direction

Start with the epochs.export('problematic_eeglab.set', overwrite=True) path and the eeglabio exporter, then reproduce the result by loading the generated file with EEGLAB's pop_loadset using the linked data. Done means the exported file preserves event names in MATLAB and passes EEGLAB's checkset validation.

Written by the indexing model from the issue text.

Description

BUG
Description of the problem

When exporting an epochs object via eeglabio, all events when loaded into MATLAB are marked as dummy events, or fails to pass checkset.

Steps to reproduce
# This requires my data file of course

epochs = mne.read_epochs('working_mne.fif')
epochs.export('problematic_eeglab.set', overwrite=True)

# Then load via pop_loadset in latest matlab/eeglab
Link to data

https://drive.google.com/file/d/1U3HptLod9yCUd7YebKnGSaWK8RqfUmkh/view?usp=sharing

Expected results

Replicating the event names in MATLAB.

Image
Actual results

See screenshot.

Image
Additional information

Platform Linux-6.14.0-36-generic-x86_64-with-glibc2.39
Python 3.12.3 (main, Nov 6 2025, 13:44:16) [GCC 13.3.0]
Executable /home/tyler/.cache/uv/builds-v0/.tmpV89SPU/bin/python
CPU Intel(R) Core(TM) Ultra 7 155U (14 cores)
Memory 30.9 GiB

Core
├☑ mne 1.11.0 (latest release)
├☑ numpy 1.26.4 (OpenBLAS 0.3.23.dev with 14 threads)
├☑ scipy 1.16.3
└☑ matplotlib 3.10.7 (backend=module://matplotlib_inline.backend_inline)

Numerical (optional)
├☑ sklearn 1.7.2
├☑ pandas 2.3.3
└☐ unavailable numba, nibabel, nilearn, dipy, openmeeg, cupy, h5io, h5py

Visualization (optional)
├☑ ipywidgets 8.1.8
└☐ unavailable pyvista, pyvistaqt, vtk, qtpy, ipympl, pyqtgraph, mne-qt-browser, trame_client, trame_server, trame_vtk, trame_vuetify

Ecosystem (optional)
├☑ mne-bids 0.17.0
├☑ mne-icalabel 0.8.1
├☑ eeglabio 0.1.2
├☑ edfio 0.4.11
├☑ defusedxml 0.7.1

Dominant language
Python
Stars
3.5k
Forks
1.6k
Avg merge
1d 6h
Merged PRs (30d)
100

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mne-tools/mne-python

All issues in mne-tools/mne-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.