parameters: (neuron_names, all_treenodes, connections, scale)
docstring: Create a cell for each arbor.
docstring_summary: Create a cell for each arbor.
docstring_tokens: Create a cell for each arbor .
function: def bodyMutual(neuron_names, all_treenodes, connections, scale):
      """ Create a cell for each arbor. """
      synaptic_treenodes:Dict = {}
      for m in connections.values():
          for synapses in m.values():
              for pre_treenodeID, post_treenodeID in synapses:
                  synaptic_treenodes[pre_treenodeID] = None
                  synaptic_treenodes[post_treenodeID] = None
  
      state = State(synaptic_treenodes)
  
      cellIDs:List = []
  
      # First cells
      sources = [['<cells>\n'],
                 make_arbors(neuron_names, all_treenodes, cellIDs, scale, state),
                 ['</cells>\n']]
  
      # Then populations: one instance of each cell
      sources.append(['<populations xmlns="http://morphml.org/networkml/schema">\n'])
      sources.append(make_cells(cellIDs, neuron_names))
      sources.append(['</populations>\n'])
  
      # Then connections between cells
      if connections:
          sources.append(['<projections units="Physiological Units" xmlns="http://morphml.org/networkml/schema">\n'])
          sources.append(make_connections(connections, state))
          sources.append(['</projections>\n'])
  
      for source in sources:
          for line in source:
              yield line
function_tokens: def bodyMutual ( neuron_names , all_treenodes , connections , scale ) : synaptic_treenodes : Dict = { } for m in connections . values ( ) : for synapses in m . values ( ) : for pre_treenodeID , post_treenodeID in synapses : synaptic_treenodes [ pre_treenodeID ] = None synaptic_treenodes [ post_treenodeID ] = None state = State ( synaptic_treenodes ) cellIDs : List = [ ] # First cells sources = [ [ '<cells>\n' ] , make_arbors ( neuron_names , all_treenodes , cellIDs , scale , state ) , [ '</cells>\n' ] ] # Then populations: one instance of each cell sources . append ( [ '<populations xmlns="http://morphml.org/networkml/schema">\n' ] ) sources . append ( make_cells ( cellIDs , neuron_names ) ) sources . append ( [ '</populations>\n' ] ) # Then connections between cells if connections : sources . append ( [ '<projections units="Physiological Units" xmlns="http://morphml.org/networkml/schema">\n' ] ) sources . append ( make_connections ( connections , state ) ) sources . append ( [ '</projections>\n' ] ) for source in sources : for line in source : yield line