Skip to content

Instantly share code, notes, and snippets.

View jgondin's full-sized avatar

gondin jgondin

View GitHub Profile
@jgondin
jgondin / convert_eeg_mat_fif.py
Created November 13, 2017 02:29 — forked from sylvchev/convert_eeg_mat_fif.py
EEG files save in GDF are convert in Matlab format with BioSig. This code convert the .mat files in pickled gzip and FIF files, ready to be used in Python with MNE.
from __future__ import print_function
from scipy.io import loadmat
from os import listdir
from numpy import nan_to_num
import pickle
import gzip
import sys
import mne
def convert_to_pz(fname):