def main(): env = Environment(trajectory='FiringRatePipeline', comment='Experiment to measure the firing rate ' 'of a leaky integrate and fire neuron. ' 'Exploring different input currents, ' 'as well as refractory periods', add_time=False, # We don't want to add the current time to the name, log_folder='./logs/', log_level=logging.INFO, log_stdout=True, multiproc=True, ncores=2, #My laptop has 2 cores ;-) filename='./hdf5/', # We only pass a folder here, so the name is chosen # automatically to be the same as the Trajectory ) env.f_pipeline(mypipeline)
def main(): filename = os.path.join('hdf5', 'FiringRate.hdf5') env = Environment(trajectory='FiringRatePipeline', comment='Experiment to measure the firing rate ' 'of a leaky integrate and fire neuron. ' 'Exploring different input currents, ' 'as well as refractory periods', add_time=False, # We don't want to add the current time to the name, log_stdout=True, multiproc=True, ncores=2, #My laptop has 2 cores ;-) filename=filename, overwrite_file=True) env.f_pipeline(mypipeline) # Finally disable logging and close all log-files env.f_disable_logging()