pp = pprint.pprint # for p in [op_dop.get()[5]]: # print p path_rate_runs = get_path_rate_runs('simulate_inhibition_ZZZ41_slow/') oscillation_returbations_index = 5 # op_pert_add=[op_dop.get()[5]] # l_op_conn=[36, 66, 97, 114, 121, 127, 138] # l_op_nuc=[33, 49, 57] # l_op_dop=[5,6] l_op_conn = [] #12, 97, 108, 109, 127, 132 ] l_op_nuc = [] #16, 33, 49, 57, 64] l_op_dop = [-1] #,6,6] opc = op_conn.get() op_pert_add = [opc[i] for i in l_op_conn] opn = op_nuc.get() op_pert_add += [opn[i] for i in l_op_nuc] opn = op_dop.get() op_pert_add += [opn[i] for i in l_op_dop] for i, o in enumerate(op_pert_add): print i, o 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 = len(l_op_conn) + len(l_op_nuc) + len(l_op_dop)
'i0':FROM_DISK_0, 'job_name':'beta_conn_pert', 'l_hours': ['00','00','00'], 'l_minutes':['45','10','5'], 'l_seconds':['00','00','00'], 'local_threads_milner':10, 'local_threads_superm':4, 'module':module, 'nets':['Net_'+str(i) for i in range(2)], #The nets for each run 'op_pert_add':op_conns.get(), 'path_code':default_params.HOME_CODE, 'path_rate_runs':get_path_rate_runs('simulate_inhibition_ZZZ4/'), 'path_results':get_path_logs(LOAD_MILNER_ON_SUPERMICRO, FILE_NAME), 'perturbation_list':[op.get()[7]], '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)
import sys import scripts_inhibition.base_oscillation_beta as module import oscillation_perturbations34_slow as op import oscillation_perturbations_conns as op_conns import pprint pp=pprint.pprint 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 amp_base=[1.25] #numpy.arange(1.05, 1.2, 0.05) freqs=[0.7] #numpy.arange(0.5, .8, 0.2) #Total number of runs 18*2*2+18 NUM_NETS=len(op_conns.get()*2) path_rate_runs=get_path_rate_runs('simulate_inhibition_ZZZ34_slow/') STN_amp_mod=[3.] kwargs={ 'amp_base':amp_base, 'Builder':Builder, 'cores_milner':40*1, 'cores_superm':40, 'debug':False,#173-86, 109-54, 45-22 'do_runs':range(NUM_NETS/2), #A run for each perturbation 'do_obj':False,
import pprint pp=pprint.pprint # for p in [op_dop.get()[5]]: # print p # op_pert_add=[op_dop.get()[5]] # l_op_conn=[36, 66, 97, 114, 121, 127, 138] # l_op_nuc=[33, 49, 57] # l_op_dop=[5,6] l_op_conn=[12, 97, 108, 109, 127, 132 ] l_op_nuc=[16, 33, 49, 57, 64] l_op_dop=[5,6] opc=op_conn.get() op_pert_add=[opc[i] for i in l_op_conn] opn=op_nuc.get() op_pert_add+=[opn[i] for i in l_op_nuc] opn=op_dop.get() op_pert_add+=[opn[i] for i in l_op_dop] for i, o in enumerate(op_pert_add): print i, o 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