RfModule

Contents

RfModule#

class pypulseqpp.sequences.RfModule[source]#

Bases: SequenceModule

Sequence module whose RF pulse can be simulated across off-resonance.

Base class of the excitation and preparation modules the package ships.

Examples

>>> import pypulseqpp.sequences as design
>>> import pypulseqpp as pp
>>> module = design.SpatialSelectiveExcitation(pp.Opts(), 15.0, 5e-3)
>>> isinstance(module, design.RfModule)
True
>>> mz_z, mz_xy, frequency = module.sim_rf()[:3]
>>> mz_xy.shape == frequency.shape
True

Methods

init_module

Build the module's block layout; implemented by the subclass.

publish

Publish events from the caller's locals and register keyword aliases.

register

Publish named events, whether or not they were added to a block.

sim_rf

Simulate this module's pulse across off-resonance.

Attributes

blocks

Block tuples in play order, holding the original event objects.

duration

Duration of the module (s).

seq

Sequence holding the module's construction-time block layout.