Skip to content

Potential bug in eeglabio exporting #13535

@Andesha

Description

@Andesha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions