def get_all_SpCells(self):
tic = time()<EOL>SpCells = {}<EOL>randomstate = np.random.get_state()<EOL>for cellindex in self.RANK_CELLINDICES:<EOL><INDENT>np.random.seed(self.POPULATIONSEED + cellindex + self.POPULATION_SIZE)<EOL>SpCells[cellindex] = {}<EOL>for i, X in enumerate(self.X):<EOL><INDENT>SpCells[cellindex][X] = self.fetchSpCells(<EOL>self.networkSim.nodes[X], self.k_yXL[:, i])<EOL><DEDENT><DEDENT>np.random.set_state(randomstate)<EOL>if RANK == <NUM_LIT:0>:<EOL><INDENT>print(('<STR_LIT>' % (time()-tic)))<EOL><DEDENT>return SpCells<EOL>
For each postsynaptic cell existing on this RANK, load or compute
the presynaptic cell index for each synaptic connection

This function takes no kwargs.


Parameters
----------
None


Returns
-------
SpCells : dict
    `output[cellindex][populationname][layerindex]`, np.array of
    presynaptic cell indices.


See also
--------
Population.fetchSpCells