Beispiel #1
0
    sim_grid = LFPy_util.sims.Grid()
    sim_grid.run_param['n_elec_x'] = 4
    sim_grid.run_param['n_elec_y'] = 7
    sim_grid.run_param['x_lim'] = [-50, 50]
    sim_grid.run_param['y_lim'] = [-50, 250]
    sim_grid.process_param['pre_dur'] = 2 # ms
    sim_grid.process_param['post_dur'] = 3 # ms
    sim_grid.process_param['spike_to_measure'] = 2
    sim.push(sim_grid)

    return sim

if __name__ == '__main__':

    # Download models if they do not exist.
    blue_brain.download_all_models(dir_model)

    # Names of the neurons that also match the model folders.
    neurons = []
    neurons.append('L5_TTPC1_cADpyr232_1')

    # Compile and load the extra mod file(s). The ISyn electrode.
    mod_dir = os.path.join(blue_brain.DIR_RES, 'extra_mod')
    LFPy_util.other.nrnivmodl(mod_dir, suppress=True)

    # Simulation
    simm = LFPy_util.SimulatorManager()
    simm.concurrent_neurons = 4
    simm.set_neuron_names(neurons)
    simm.set_sim_load_func(get_simulator)
    print simm
    sim_sphere.run_param['R'] = 60
    sim_sphere.run_param['seed'] = np.random.randint(1e5) #4321
    sim_sphere.process_param['spike_to_measure'] = 2
    sim_sphere.process_param['assert_width'] = True
    sim_sphere.plot_param['use_tex'] = False
    sim.push(sim_sphere)

    sim_morph = LFPy_util.sims.Morphology()
    sim_morph.plot_param['use_tex'] = False
    sim.push(sim_morph)

    return sim

if __name__ == '__main__':
    # Download models if they do not exist.
    blue_brain.download_all_models(DIR_MODELS)

    # Names of the neurons that also match the model folders.
    neurons = []
    neurons.append('L5_BP_bAC217_1')
    neurons.append('L5_BP_bAC217_2')
    neurons.append('L5_BP_bAC217_3')
    neurons.append('L5_BP_bAC217_4')
    neurons.append('L5_BP_bAC217_5')
    neurons.append('L5_BP_bIR215_1')
    neurons.append('L5_BP_bIR215_2')
    neurons.append('L5_BP_bIR215_3')
    neurons.append('L5_BP_bIR215_4')
    neurons.append('L5_BP_bIR215_5')
    neurons.append('L5_BP_bNAC219_1')
    neurons.append('L5_BP_bNAC219_2')