def set_rotations(self):
tic = time()<EOL>if RANK == <NUM_LIT:0>:<EOL><INDENT>rotations = []<EOL>for i in range(self.POPULATION_SIZE):<EOL><INDENT>defaultrot = {}<EOL>for axis in self.rand_rot_axis:<EOL><INDENT>defaultrot.update({axis : np.random.rand() * <NUM_LIT:2> * np.pi})<EOL><DEDENT>rotations.append(defaultrot)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>rotations = None<EOL><DEDENT>if RANK == <NUM_LIT:0>:<EOL><INDENT>print(('<STR_LIT>' % (time()-tic)))<EOL><DEDENT>return COMM.bcast(rotations, root=<NUM_LIT:0>)<EOL>
Append random z-axis rotations for each cell in population.

This method takes no keyword arguments


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


Returns
-------
numpyp.ndarray
    Rotation angle around axis `Population.rand_rot_axis` of each neuron
    in the population