def to_csvs(self, path=''):

        subdir = os.path.join(path, self.subject_id)
        try:
            os.makedirs(subdir)
        except:
            pass
        for trial in self.trials_data:
            trial.to_csv(path=subdir)
Modifier to start a transaction independent from any enclosing.
dataset/ETHPy150Open turambar/pyDatasets/pydatasets/uci/eeg.py/EegSubject.to_csvs--crossover with--dataset/ETHPy150Open openstack/oslo.db/oslo_db/sqlalchemy/enginefacade.py/_TransactionContextManager.independent