def to_pickle(self, path='', filename=None):

        if filename is None:
            filename = '{0.subject_id}.pkl'.format(self)
        filename = os.path.join(path, filename)
        pickle.dump(self, open(filename, 'w'), pickle.HIGHEST_PROTOCOL)
Pickle (serialize) EegSubject object to disk.
dataset/ETHPy150Open turambar/pyDatasets/pydatasets/uci/eeg.py/EegSubject.to_pickle