def get_all_synDelays(self):
tic = time()<EOL>randomstate = np.random.get_state()<EOL>delays = {}<EOL>for cellindex in self.RANK_CELLINDICES:<EOL><INDENT>np.random.seed(self.POPULATIONSEED + cellindex + <NUM_LIT:2>*self.POPULATION_SIZE)<EOL>delays[cellindex] = {}<EOL>for j, X in enumerate(self.X):<EOL><INDENT>delays[cellindex][X] = []<EOL>for i in self.k_yXL[:, j]:<EOL><INDENT>loc = self.synDelayLoc[j]<EOL>loc /= self.dt<EOL>scale = self.synDelayScale[j]<EOL>if scale is not None:<EOL><INDENT>scale /= self.dt<EOL>delay = np.random.normal(loc, scale, i).astype(int)<EOL>while np.any(delay < <NUM_LIT:1>):<EOL><INDENT>inds = delay < <NUM_LIT:1><EOL>delay[inds] = np.random.normal(loc, scale,<EOL>inds.sum()).astype(int)<EOL><DEDENT>delay = delay.astype(float)<EOL>delay *= self.dt<EOL><DEDENT>else:<EOL><INDENT>delay = np.zeros(i) + self.synDelayLoc[j]<EOL><DEDENT>delays[cellindex][X].append(delay)<EOL><DEDENT><DEDENT><DEDENT>np.random.set_state(randomstate)<EOL>if RANK == <NUM_LIT:0>:<EOL><INDENT>print(('<STR_LIT>' % (time()-tic)))<EOL><DEDENT>return delays<EOL>
Create and load arrays of connection delays per connection on this rank

Get random normally distributed synaptic delays,
returns dict of nested list of same shape as SpCells.

Delays are rounded to dt.

This function takes no kwargs.


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


Returns
-------
dict
    output[cellindex][populationname][layerindex]`, np.array of
    delays per connection.


See also
--------
numpy.random.normal