Skip to content

Instantly share code, notes, and snippets.

View LudovicGardy's full-sized avatar
🏠
Working from home

Ludovic Gardy LudovicGardy

🏠
Working from home
View GitHub Profile
@skjerns
skjerns / save_edf.py
Last active October 20, 2024 03:09
Save a mne.io.Raw object to EDF/EDF+/BDF/BDF+
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 5 12:56:31 2018
@author: skjerns
Gist to save a mne.io.Raw object to an EDF file using pyEDFlib
(https://github.com/holgern/pyedflib)
Disclaimer:
- Saving your data this way will result in slight
loss of precision (magnitude +-1e-09).
- It is assumed that the data is presented in Volt (V),