'freq_oscillation': 20., 'from_disk_0': FROM_DISK_0, 'i0': FROM_DISK_0, 'job_name': 'beta_ZZZ81', 'l_hours': ['00', '00', '00'], 'l_minutes': ['15', '10', '5'], 'l_seconds': ['00', '00', '00'], 'local_threads_milner': 20, 'local_threads_superm': 1, 'module': module, 'nets': ['Net_0', 'Net_1'], #The nets for each run 'no_oscillations_control': True, '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()[2]], 'sim_time': 10000.0, 'size': 20000.0, } d_process_and_thread = par_process_and_thread(**kwargs) pp(d_process_and_thread) kwargs.update(d_process_and_thread) p_list = pert_add_oscillations(**kwargs) p_list = pert_set_data_path_to_milner_on_supermicro(p_list, LOAD_MILNER_ON_SUPERMICRO) for i, p in enumerate(p_list): print i, p
from core.parallel_excecution import loop import sys import scripts_inhibition.base_oscillation_beta as module import oscillation_perturbations8 as op import pprint pp=pprint.pprint path_rate_runs=get_path_rate_runs('simulate_inhibition_ZZZ8/') FILE_NAME=__file__.split('/')[-1][0:-3] FROM_DISK_0=int(sys.argv[1]) if len(sys.argv)>1 else 0 LOAD_MILNER_ON_SUPERMICRO=False # ops=[op.get()[0]] ops=op.get() NUM_RUNS=len(ops) NUM_NETS=2 num_sims=NUM_RUNS*NUM_NETS kwargs={ 'amp_base':[1.2], #From ZZZ61 'Builder':Builder, 'cores_milner':40*1, 'cores_superm':20, 'debug':False, 'do_runs':range(NUM_RUNS), #A run for each perturbation 'do_obj':False,
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_perturbations8 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'],
from core.network import default_params from core.network.manager import Builder_slow_wave2 as Builder from core.parallel_excecution import loop import sys import scripts_inhibition.base_oscillation_sw as module import oscillation_perturbations8 as op import pprint pp=pprint.pprint path_rate_runs=get_path_rate_runs('simulate_inhibition_ZZZ8/') FILE_NAME=__file__.split('/')[-1][0:-3] FROM_DISK_0=int(sys.argv[1]) if len(sys.argv)>1 else 0 LOAD_MILNER_ON_SUPERMICRO=False NUM_NETS=2*len(op.get()) kwargs={ 'amp_base':[1.], 'Builder':Builder, 'cores_milner':40*1, 'cores_superm':40, 'debug':False, 'do_runs':range(NUM_NETS/2), #A run for each perturbation 'do_obj':False, 'file_name':FILE_NAME, 'freqs':[0.75], #amplitude frequencies