Exemplo n.º 1
0
def build_net_round_robin(model,
                          mitral_gids=set(range(params.Nmitral)),
                          connection_file=''):
    model.clear()

    enter = h.startsw()
    for mgid in mitral_gids:

        if rank != (mgid % nhost):
            continue
        model.mitral_gids.add(mgid)  # add mitral

    # blanes cell to build
    for x in params.glom2blanes:
        blanesgid = x[1]
        if rank != (blanesgid % nhost):
            continue
        model.blanes_gids.add(blanesgid)

    # gen. mitrals
    dc.mk_mitrals(model)

    if len(connection_file) > 0:
        # read connection file
        read_mconnection_info(model, connection_file)
    else:
        dc.mk_mconnection_info(model)
    build_round_robin(model)
    if rank == 0: print 'build_subnet_round_robin ', h.startsw() - enter
Exemplo n.º 2
0
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
Exemplo n.º 3
0
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):
    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
Exemplo n.º 5
0
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