graphicle.data.MomentumArray.shift_phi(shift: float | ndarray[Any, dtype[float64]]) MomentumArray[source]

Performs an azimuthal rotation about the longitudinal axis, by adding an angle of shift to all elements.

New in version 0.2.11.

Parameters:
shift : float or ndarray[float64]

The change in azimuthal angle. If scalar, change will be broadcast over all elements. If ndarray, change will be element-wise.

Returns:

Copy of this array, with the shifted azimuthal angles.

Return type:

MomentumArray


Last update: Jun 27, 2025