Skip to content

Instantly share code, notes, and snippets.

View bonniekcn's full-sized avatar

Bonnie Ng bonniekcn

View GitHub Profile
@bonniekcn
bonniekcn / save_edf.py
Created October 20, 2020 08:48 — forked from skjerns/save_edf.py
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),