def build_net_round_robin(model, connection_file): import custom_params model.mitral_gids = set(range(0, min(635, custom_params.customMitralCount))) model.granule_gids = set( range( max(model.mitral_gids) + 1, min( 122166, custom_params.customMitralCount * custom_params.customGranulesPerMitralCount))) model.gids = model.mitral_gids.union(model.granule_gids) enter = h.startsw() dc.mk_mitrals(model) #return # removing as per M. Migliore's email read_mconnection_info(model, connection_file) dc.mk_gconnection_info(model) model.gids = model.mitral_gids.copy() model.gids.update(model.granule_gids) register_mitrals(model) build_granules(model) register_granules(model) build_synapses(model) elapsed('build_net_round_robin') if rank == 0: print "round robin setuptime ", h.startsw() - t_begin
def build_net_round_robin(model, connection_file): enter = h.startsw() dc.mk_mitrals(model) read_mconnection_info(model, connection_file) dc.mk_gconnection_info(model) model.gids = model.mitral_gids.copy() model.gids.update(model.granule_gids) register_mitrals(model) build_granules(model) register_granules(model) build_synapses(model) elapsed('build_net_round_robin') if rank == 0: print "round robin setuptime ", h.startsw() - t_begin
def build_net_round_robin(model, connection_file): import custom_params model.mitral_gids = set(range(0,min(635, custom_params.customMitralCount))) model.granule_gids = set(range(max(model.mitral_gids)+1, min(122166, custom_params.customMitralCount*custom_params.customGranulesPerMitralCount))) model.gids = model.mitral_gids.union(model.granule_gids) enter = h.startsw() dc.mk_mitrals(model) #return # removing as per M. Migliore's email read_mconnection_info(model, connection_file) dc.mk_gconnection_info(model) model.gids = model.mitral_gids.copy() model.gids.update(model.granule_gids) register_mitrals(model) build_granules(model) register_granules(model) build_synapses(model) elapsed('build_net_round_robin') if rank == 0: print "round robin setuptime ", h.startsw() - t_begin
def build_round_robin(model): dc.mk_gconnection_info(model) model.gids = model.mitral_gids.copy() model.gids.update(model.granule_gids) model.gids.update(model.blanes_gids) register_mitrals(model) build_blanes(model) register_blanes(model) build_granules(model) register_granules(model) blanes.mk_gl2b_connections() blanes.mk_b2g_connections() build_synapses(model) elapsed('build_net_round_robin') if rank == 0: print "round robin setuptime ", h.startsw() - t_begin