#     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)

amp_base = 1.1
freqs = 0.6
Ejemplo n.º 2
0
from core.parallel_excecution import loop

import sys
import scripts_inhibition.base_oscillation_beta as module
import oscillation_perturbations13_slow as op
import oscillation_perturbations_nuclei as op_neuclei
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

#Total number of runs 18*2*2+18
NUM_NETS = 2
NUM_RUNS = len(op_neuclei.get())  #A run for each perturbation
num_sim = NUM_NETS * NUM_RUNS
path_rate_runs = get_path_rate_runs('simulate_inhibition_ZZZ13_slow/')

kwargs = {
    'amp_base': [1.15],
    'Builder': Builder,
    'cores_milner': 40 * 1,
    'cores_superm': 40,
    'debug': False,  #173-86, 109-54, 45-22
    'do_runs': range(NUM_RUNS),  #A run for each perturbation
    'do_obj': False,
    'file_name': FILE_NAME,
    'freqs': [0.8],
    'freq_oscillation': 20.,
    'from_disk_0': FROM_DISK_0,
# 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
NUM_NETS=len(l_op_conn)+len(l_op_nuc)+len(l_op_dop)
kwargs={
         'ax_4x1':True,
Ejemplo n.º 4
0
from core.parallel_excecution import loop

import sys
import scripts_inhibition.base_oscillation_sw as module
import oscillation_perturbations13_slow as op
import oscillation_perturbations_nuclei as op_neuclei
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
path_rate_runs = get_path_rate_runs('simulate_inhibition_ZZZ13_slow/')

#Total number of runs 18*2*2+18
NUM_NETS = len(op_neuclei.get()) * 2

kwargs = {
    'amp_base': [1.],
    '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,
    'file_name': FILE_NAME,
    'freqs': [0.8],
    'freq_oscillation': 1.,
    'from_disk_0': FROM_DISK_0,
    'external_input_mod': ['EI', 'EA'],
    'i0': FROM_DISK_0,
Ejemplo n.º 5
0
        'i0':FROM_DISK_0,
        
        'job_name':'sw_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_neuclei.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':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)