summary

Contents

summary#

pulserver.ir.summary()[source]#

Return the segmentation of a sequence: subsequences, segments and readouts.

Each subsequence reports:

  • rf: its unique RF definitions, each with the flip angle in degrees at the largest amplitude it plays (pypulseqpp.Sequence.rf_flip_angles); the bandwidth at half the spectral peak, the number of bands, each band’s offset from the carrier and the widest band’s bandwidth, in Hz (pypulseqpp.calc_rf_bandwidth); and b1sq_integral_s, the integral of the squared envelope scaled to unit peak, in s, which is pypulseqpp.calc_rf_power’s energy over its peak power. Spectra and integral are summed over the channels of a dynamic pTx pulse.

  • vop_sar_ratio, vop_global_sar_ratio, spl_peak_db, spl_average_dba: the values the cache was written with; 0, 0, -1 and -1 when the chain is read and segmented again.

  • readout_labels: per readout in play order, the values of the three labels label_column_map selects, as in force at that readout.

  • waves: the subsequence’s waves, indexed as play() indexes them, each with its point count and its largest magnitude along x, y and z over that of the largest gradient event it combines.

  • grad_raster_us: the raster the file’s gradient shapes are sampled on, in µs.

Parameters:
  • seq_path (Path | str) – Text or binary Pulseq file, the first of its NextSequence chain.

  • system (pypulseqpp.Opts) – Limits and rasters the chain is segmented under; unused with cache_ext.

  • cache_ext (str, default=None) – Extension of the cache beside the file, dot included. When given, that cache is loaded instead of the chain being read and segmented again; this build loads only vendor-neutral caches, and only when the size recorded in the cache matches the file.

  • label_column_map (Sequence[int], default=(0, 1, 2)) – Label state indices of the three readout label columns, as for convert(); unused with cache_ext.

Raises:

ValueError – If the file cannot be read or the cache cannot be loaded.