rotate

Contents

rotate#

pypulseqpp.rotate()[source]#

Rotates the corresponding gradient(s) about the given axis by the specified amount. Gradients parallel to the rotation axis and non-gradient(s) are not affected. Possible rotation axes are ‘x’, ‘y’ or ‘z’.

See also pypulseq.Sequence.sequence.add_block().

Parameters:
  • axis (str) – Axis about which the gradient(s) will be rotated.

  • angle (float) – Angle by which the gradient(s) will be rotated.

  • args (SimpleNamespace) – Gradient(s).

Returns:

rotated_grads – Rotated gradient(s).

Return type:

[SimpleNamespace]

Notes

This is PyPulseq’s function. Events go in as the namespaces it expects and come back with their fields in slots.