Beispiel #1
0
from scripts_inhibition.base_simulate import (
    get_path_logs, get_args_list_inhibition, get_kwargs_list_indv_nets,
    par_process_and_thread, pert_set_data_path_to_milner_on_supermicro,
    pert_add_inhibition)

import scripts_inhibition.base_inhibition_striatum as module
import oscillation_perturbations13_slow as op
import pprint
pp = pprint.pprint

FILE_NAME = __file__.split('/')[-1][0:-3]
FROM_DISK_0 = 0
LOAD_MILNER_ON_SUPERMICRO = False
NUM_NETS = 1
NUM_RUNS = len(op.get())  #A run for each perturbation
num_sim = NUM_NETS * NUM_RUNS

kwargs = {
    'Builder': Builder,
    'cores_milner': 40 * 1,
    'cores_superm': 4,
    'file_name': FILE_NAME,
    'from_disk': 0,
    'debug': False,
    'do_runs': range(NUM_RUNS),  #A run for each perturbation
    'do_obj': False,
    'i0': FROM_DISK_0,
    'job_name': 'inh_YYY',
    'l_hours': ['00', '00', '00'],
    'l_minutes': ['15', '10', '5'],
Beispiel #2
0
    'i0': FROM_DISK_0,
    'job_name': 'be_nucl_pert2',
    'l_hours': ['00', '00', '00'],
    'l_minutes': ['45', '45', '05'],
    'l_seconds': ['00', '00', '00'],
    'local_threads_milner': 10,
    'local_threads_superm': 4,
    'module': module,
    'nets': ['Net_' + str(i) for i in range(NUM_NETS)],  #The nets for each run
    'no_oscillations_control': True,
    'null_down': True,
    'op_pert_add': op_neuclei.get(),
    'path_code': default_params.HOME_CODE,
    'path_rate_runs': path_rate_runs,
    'path_results': get_path_logs(LOAD_MILNER_ON_SUPERMICRO, FILE_NAME),
    'perturbation_list': op.get(),
    'sim_time': 40000.0,
    'size': 20000.0,
}

d_process_and_thread = par_process_and_thread(**kwargs)
pp(d_process_and_thread)
kwargs.update(d_process_and_thread)

pp(kwargs)

p_list = pert_add_oscillations(**kwargs)

p_list = pert_add(p_list, **kwargs)

for i, p in enumerate(p_list):