make_spoiler_gradient

make_spoiler_gradient#

pulserver.blocks.make_spoiler_gradient(channel, system, ncycles, voxel_size, duration=None)[source]#

Prepare spoiler gradient with given dephasing across the given spatial length.

Parameters:
  • channel (str) – Phase encoding axis. Must be one between x, y and z`.

  • system (pypulseq.Opts) – System limits.

  • ncycles (int) – Number of spoiling cycles per voxel.

  • voxel_size (float) – Voxel size in the spoiling direction in [mm].

  • duration (float | None, optional) – Duration of spoiling gradient in [s]. If not provided, use minimum duration given by area and system specs. The default is None (minumum duration).

Returns:

Spoiling event on the specified axes.

Return type:

SimpleNamespace