Пример #1
0
    'freq_oscillation': 20.,
    'from_disk_0': FROM_DISK_0,
    'i0': FROM_DISK_0,
    'job_name': 'beta_ZZZ142',
    'l_hours': ['00', '01', '00'],
    'l_minutes': ['15', '00', '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(),
    'sim_time': 10000.0,
    'size': 20000.0,
    'STN_amp_mod': 0.5,
}

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
                      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_perturbations14 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,