RfModule

Contents

RfModule#

class pypulseqpp.sequences.RfModule[source]#

Bases: SequenceModule

Sequence module with off-resonance simulation of an individual RF pulse.

Every excitation and preparation module the package ships is an RfModule, so the off-resonance response of its pulse is available from the module itself.

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 without requiring prior block registration.

sim_rf

Simulate this module's pulse across off-resonance.

Attributes

blocks

Return block tuples in play order, retaining the original event objects.

duration

Duration of the module in seconds.

seq

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