snudda.place.rotation¶
- class snudda.place.rotation.SnuddaRotate(config_file=None)[source]¶
Rotation object.
Constructor
- Parameters:
config_file – Path to network config file
- get_rotations(volume_name, neuron_type, neuron_positions, rng)[source]¶
Gets rotations for neuron_type in volumne name at neuron_positions
- static load_rotation_field(rotation_field_file, volume_name)[source]¶
Loads rotation field for volumne_name from rotation_field_file
- static rand_rotation_matrix(deflection=1.0, rand_nums=None, rng=None)[source]¶
Creates a random rotation matrix.
deflection: the magnitude of the rotation. For 0, no rotation; for 1, competely random rotation. Small deflection => small perturbation. rand_nums: 3 random numbers in the range [0, 1]. If None, they will be auto-generated.