calc_uniform_angles#
- pypulseqpp.calc_uniform_angles()[source]#
Return equally spaced rotations in the half-open interval [0, span).
- Parameters:
- Returns:
Angles (rad), length
n, spaced byspan / n.- Return type:
- Raises:
ValueError – If
nis below one, orspanis not positive.
Examples
>>> import numpy as np >>> import pypulseqpp as pp >>> np.rad2deg(pp.calc_uniform_angles(4)) array([ 0., 90., 180., 270.])
A half-turn span spaces diametric spokes without covering a direction twice:
>>> np.rad2deg(pp.calc_uniform_angles(4, span=np.pi)) array([ 0., 45., 90., 135.])
See also
calc_golden_anglesuniform in any temporal window instead.