Ejemplo n.º 1
0

# working dir
CWD = os.getcwd()
compilation_folder = params.filename['compilation_folder']

# load some required neuron-interface files
neuron.h.load_file("stdrun.hoc")
neuron.h.load_file("import3d.hoc")

# get names of neuron models, layers options are 'L1', 'L23', 'L4', 'L5' and 'L6'
layer_name = params.sim['layer']
neuron_type = params.sim['neuron_type']
# neurons = utils.init_neurons_epfl(layer_name, SIZE)
neurons = utils.init_neurons_epfl(layer_name,
                                  SIZE,
                                  neuron_type,
                                  full_axon=params.sim['full_axon'])
print("loaded models: {}".format(
    utils.get_epfl_model_name(neurons, short=params.filename['short_name'])))
neurons.sort()
print("REACH")

# flag for cell template file to switch on (inactive) synapses
add_synapses = False

COMM.Barrier()
neuron.load_mechanisms(compilation_folder)

os.chdir(CWD)

FIGS = 'outputs/epfl_column'
Ejemplo n.º 2
0
NMODL = 'morphologies/hoc_combos_syn.1_0_10.allmods'
# neurons = glob(os.path.join(CWD, '*'))

FIGS = 'outputs/epfl_column'
if not os.path.isdir(FIGS):
    os.mkdir(FIGS)


neuron.h.load_file("stdrun.hoc")
neuron.h.load_file("import3d.hoc")

# get names of neuron models, layers options are 'L1', 'L23', 'L4', 'L5' and 'L6'
layer_name = 'L5'
# neuron_type = 'DBC'
# neurons = utils.init_neurons_epfl(layer_name, SIZE, neuron_type)
neurons = utils.init_neurons_epfl(layer_name, SIZE)
print("loaded models: {}".format(utils.get_epfl_model_name(neurons, short=False)))

# os.chdir(CWD)

# flag for cell template file to switch on (inactive) synapses
add_synapses = False

# load the LFPy SinSyn mechanism for stimulus
neuron.load_mechanisms(os.path.join(LFPy.__path__[0], "test"))


def posixpth(pth):
    """
    Replace Windows path separators with posix style separators
    """