mne-python icon indicating copy to clipboard operation
mne-python copied to clipboard

EEG BDF type data read extension requirment

Open hao199509 opened this issue 4 months ago • 2 comments

Describe the new feature or enhancement

we have a special BDF EEG data recorded by Neuracle EEG device , a complete subject eeg data is placed into many subfolders,while the evt.bdf is in the mainfolder. we try use the mne.io.read_raw_bdf to import the data,it makes sense when all data were loaded once time, but it cant work all the time,especially,we want load a segment overlap two bdf file and then meet error when using raw.plot() or raw.filter(). Because there are special attr belong to rawbase. our code is attached following,please tell us some adivice for this issue, thank you .

Describe your proposed implementation

I hope that a new data read method can be added into mne io package ,because there are many students and researchers using this type data. It can provide great convinience for people who use. if necessery, i could and would like to contribute to this work with your help.

Describe possible alternatives

import_multi_bdf_files.txt

Here is my code, it just can read data but cant plot or filter

Additional context

No response

hao199509 avatar Aug 13 '25 06:08 hao199509

Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴

welcome[bot] avatar Aug 13 '25 06:08 welcome[bot]

It looks like you have implemented a new raw class. This is probably going to be difficult to debug, and probably outside the scope of MNE-Python to debug it since it's unlikely a bug with MNE-Python, but more of a usage error (likely with _read_segment_file or related things). _read_segment_file is a private method so it's not really meant to be used/defined by end users, and not guaranteed to be stable release-to-release etc. So it would be better if we could find another way to address your use case.

Can you help me understand your use case better? If you have multiple BDF files, why not read them each using read_raw_bdf, then use mne.concatenate_raws to concatenate them? If needed you could crop each one before concatenating if they would otherwise overlap.

larsoner avatar Aug 14 '25 12:08 larsoner