Dear @richard ,
thank you for your reply.
You are very right indeed. In fact, at first, the error was:
File "**/**/**/venv/lib/python3.8/site-packages/mne/io/proc_history.py", line 107, in _write_proc_history
if len(info['proc_history']) > 0:
KeyError: 'proc_history'
Which I solved by creating a dummy entry as follows
eeg.info['proc_history'] = []
I m going to edit the title.
Regarding the data generation, unfortunately, I m not the one who did the conversion from the original .edf
format (from the headset) to the mne
's Raw object.
These Raw objects are used from plots and pre-processing function, which works with no problem.
Is it possible to add some dummy annotations in order to save the file?
The end goal is to release an eeg dataset in .fif
format with a mne
-based dataloader instead of a python’s pickle file.
edit:
Here is the print of my RawArray eeg_data
:
>>> print(eeg_data)
<RawArray | 30 x 1520896 (5941.0 s), ~348.1 MB, data loaded>
>>> print(eeg_data.info)
<Info | 9 non-empty values
bads: 3 items (STI 014, ESUTimestamp, SystemTimestamp)
buffer_size_sec: 1.0
ch_names: F3, F1, Fz, F2, F4, C3, C1, Cz, C2, C4, CPz, P3, P1, Pz, P2, P4, ...
chs: 20 EEG, 8 MISC, 1 ECG, 1 EOG
custom_ref_applied: False
highpass: 0.0 Hz
lowpass: 128.0 Hz
meas_date: 2016-07-21 17:11:52 UTC
nchan: 30
projs: []
sfreq: 256.0 Hz
>
Thank you