CheckLimits

Contents

CheckLimits#

class pulserver.ir.CheckLimits[source]#

Bases: object

The nerve and resonance limits of a chain, and the VOPs of its SAR ratios, besides pypulseqpp.Opts.

Attributes:
  • pns (Any) – Nerve model of pypulseqpp.safety.check_pns: a ChronaxieModel or a SAFE description. None leaves out the PNS check.

  • pns_limit (float) – Largest PNS response allowed, as a fraction of the model’s threshold.

  • bands (tuple[pypulseqpp.safety._resonance.ForbiddenBand, …]) – Forbidden gradient bands of check_mech_resonance, on the physical axes. Without any, the resonance check is left out.

  • vops (pypulseqpp.safety._sar.VopModel | pathlib.Path | str | None) – VOPs, or the .mat or .npz file holding them, which sar_ratios() reads; nothing is refused on SAR.

  • drive_per_hz (float | tuple[float, …]) – Channel drive per Hz of RF amplitude, in the VOPs’ drive unit: one value, or one per channel. A scale common to every channel cancels in the ratios.

  • default_shim (tuple[complex, …] | None) – Complex channel weights of a pulse played without an RF shim, and of the reference pulse; equal weights when None.

Raises:

ValueError – If the PNS limit is not positive.

Attributes