'input_type': 'burst3_oscillations', 'job_name': 'fig6_nodop', 'l_mean_rate_slices': ['mean_rate_slices'], 'l_hours': ['05', '01', '00'], 'l_minutes': ['00', '00', '05'], 'l_seconds': ['00', '00', '00'], 'labels': ['Only D1 no dop', 'D1,D2 no dop'], 'local_threads_milner': 40, 'local_threads_superm': 4, 'max_size': 20000., 'module': module, 'nets': ['Net_0', 'Net_1'], 'other_scenario': True, 'path_code': default_params.HOME_CODE, 'path_results': get_path_logs(LOAD_MILNER_ON_SUPERMICRO, FILE_NAME), 'perturbation_list': [op.get()[5]], 'proportion_connected': [0.2] * NUM_NETS, #related to toal number fo runs 'p_sizes': [1.], 'p_subsamp': [1.], 'STN_amp_mod': STN_amp_mod, } if my_socket.determine_computer() == 'milner': kw_add = { 'duration': [907., 100.0], 'laptime': 1007.0, 'res': 10, 'rep': 40, 'time_bin': 100., } elif my_socket.determine_computer() == 'supermicro': kw_add = {
pert_add_inhibition) from core import my_socket import config import scripts_inhibition.base_inhibition_striatum as module import oscillation_perturbations41_slow as op import pprint pp=pprint.pprint FILE_NAME=__file__.split('/')[-1][0:-3] FROM_DISK_0=0 NUM_NETS=1 ops=op.get() NUM_RUNS=len(ops) #A run for each perturbation num_sim=NUM_NETS*NUM_RUNS dc=my_socket.determine_computer CORES=40 if dc()=='milner' else 10 JOB_ADMIN=config.Ja_milner if dc()=='milner' else config.Ja_else LOCAL_NUM_THREADS= 20 if dc()=='milner' else 10 WRAPPER_PROCESS=config.Wp_milner if dc()=='milner' else config.Wp_else kwargs={ 'Builder':Builder, 'cores':CORES, 'file_name':FILE_NAME,
'l_seconds': ['00', '00', '00'], 'labels': [ 'D1,D2', ], 'local_threads_milner': 40, 'local_threads_superm': 4, 'max_size': 20000., 'module': module, 'nets': ['Net_0'], 'op_pert_add': op_pert_add, # 'oscillation_returbations_index':oscillation_returbations_index, 'other_scenario': True, 'path_code': default_params.HOME_CODE, 'path_results': get_path_logs(LOAD_MILNER_ON_SUPERMICRO, FILE_NAME), 'path_rate_runs': path_rate_runs, 'perturbation_list': [op.get()[oscillation_returbations_index]], 'proportion_connected': [0.2] * NUM_NETS, #related to toal number fo runs 'p_sizes': [1.], 'p_subsamp': [1.], 'STN_amp_mod': STN_amp_mod, } if my_socket.determine_computer() == 'milner': kw_add = { 'duration': [907., 100.0], 'laptime': 1007.0, 'res': 10, 'rep': 40, 'time_bin': 100., } elif my_socket.determine_computer() == 'supermicro':
path_rate_runs = get_path_rate_runs('simulate_inhibition_ZZZ41_slow/') 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 amp_base = [1., 1.05, 1.1] #numpy.arange(1.05, 1.2, 0.05) freqs = [0.6] #numpy.arange(0.5, .8, 0.2) n = len(amp_base) m = len(freqs) amp_base = list(numpy.array([m * [v] for v in amp_base]).ravel()) freqs = list(freqs) * n STN_amp_mod = [3.] #range(1, 6, 2) num_runs = len(freqs) * len(STN_amp_mod) * len(op.get()) num_sims = NUM_NETS * num_runs dc = my_socket.determine_computer CORES = 40 if dc() == 'milner' else 10 JOB_ADMIN = config.Ja_milner if dc() == 'milner' else config.Ja_else LOCAL_NUM_THREADS = 20 if dc() == 'milner' else 10 WRAPPER_PROCESS = config.Wp_milner if dc() == 'milner' else config.Wp_else kwargs = { 'amp_base': amp_base, 'Builder': Builder, 'cores': CORES, 'debug': False, 'do_runs': range(num_runs), #A run for each perturbation 'do_obj': False,
path_rate_runs=get_path_rate_runs('simulate_inhibition_ZZZ41_slow/') 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 amp_base=[1.1] #numpy.arange(1.05, 1.2, 0.05) freqs=numpy.arange(0.0, 2.0, 0.1)# [ 0.6] #numpy.arange(0.5, .8, 0.2) n=len(amp_base) m=len(freqs) amp_base=list(numpy.array([m*[v] for v in amp_base]).ravel()) freqs=list(freqs)*n STN_amp_mod=[3.]#range(1, 6, 2) num_runs=len(freqs)*len(STN_amp_mod)*len(op.get()) num_sims=NUM_NETS*num_runs kwargs={ 'amp_base':amp_base, 'Builder':Builder, 'cores_milner':40*1, 'cores_superm':2, 'debug':False, 'do_runs':range(num_runs), #A run for each perturbation 'do_obj':False, 'external_input_mod':['EI','EA'],
import sys import scripts_inhibition.base_oscillation_beta as module import oscillation_perturbations41_slow as op import oscillation_perturbations_nuclei2 as op_neuclei import pprint pp=pprint.pprint path_rate_runs=get_path_rate_runs('fig_01_and_02_sim_inh/') 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]] amp_base=[1.1] #numpy.arange(1.05, 1.2, 0.05) freqs=[0.4] #numpy.arange(0.5, .8, 0.2) #Total number of runs 18*2*2+18 STN_amp_mod=[3.] NUM_NETS=2 NUM_RUNS=len(op_neuclei.get()) #A run for each perturbation num_sim=NUM_NETS*NUM_RUNS dc=my_socket.determine_computer CORES=40 if dc()=='milner' else 10 JOB_ADMIN=config.Ja_milner if dc()=='milner' else config.Ja_else LOCAL_NUM_THREADS= 20 if dc()=='milner' else 10 WRAPPER_PROCESS=config.Wp_milner if dc()=='milner' else config.Wp_else kwargs={
'laptime':1000.0, 'local_threads_milner':40, 'local_threads_superm':4, 'max_size':20000., 'module':module, 'nets':['Net_0'], 'op_pert_add':op_pert_add, 'other_scenario':True, 'path_code':default_params.HOME_CODE, 'path_results':get_path_logs(LOAD_MILNER_ON_SUPERMICRO, FILE_NAME), 'perturbation_list':[op.get()[5]], 'proportion_connected':[0.2]*NUM_NETS, #related to toal number fo runs 'p_sizes':[ 1. ], 'p_subsamp':[ 1. ], 'res':10, 'rep':40, 'time_bin':100, } d_process_and_thread=par_process_and_thread(**kwargs) kwargs.update(d_process_and_thread)
get_kwargs_list_indv_nets, par_process_and_thread, pert_add_inhibition) from toolbox import my_socket import config import scripts_inhibition.base_inhibition_striatum as module import oscillation_perturbations41_slow as op import pprint pp = pprint.pprint FILE_NAME = __file__.split('/')[-1][0:-3] FROM_DISK_0 = 0 NUM_NETS = 1 ops = op.get()[0:2] NUM_RUNS = len(ops) #A run for each perturbation num_sim = NUM_NETS * NUM_RUNS JOB_ADMIN = config.Ja_milner if my_socket.determine_computer( ) == 'milner' else config.Ja_else PROCESS_TYPE = 'milner' if my_socket.determine_computer( ) == 'milner' else 'else' WRAPPER_PROCESS = config.Wp_milner if my_socket.determine_computer( ) == 'milner' else config.Wp_else kwargs = { 'Builder': Builder, 'cores_mpi': 40 * 1, 'cores_shared_memory': 4, 'file_name': FILE_NAME,