def insert_all_synapses(self, cellindex, cell):
for i, X in enumerate(self.X): <EOL><INDENT>synParams = self.synParams<EOL>synParams.update({<EOL>'<STR_LIT>' : self.J_yX[i],<EOL>'<STR_LIT>' : self.tau_yX[i],<EOL>})<EOL>for j in range(len(self.synIdx[cellindex][X])):<EOL><INDENT>if self.synDelays is not None:<EOL><INDENT>synDelays = self.synDelays[cellindex][X][j]<EOL><DEDENT>else:<EOL><INDENT>synDelays = None<EOL><DEDENT>self.insert_synapses(cell = cell,<EOL>cellindex = cellindex,<EOL>synParams = synParams,<EOL>idx = self.synIdx[cellindex][X][j],<EOL>X=X,<EOL>SpCell = self.SpCells[cellindex][X][j],<EOL>synDelays = synDelays)<EOL><DEDENT><DEDENT>
Insert all synaptic events from all presynaptic layers on
cell object with index `cellindex`.


Parameters
----------
cellindex : int
    cell index in the population.
cell : `LFPy.Cell` instance
    Postsynaptic target cell.


Returns
-------
None


See also
--------
Population.insert_synapse