played_time#
- pulserver.ir.played_time()[source]#
Return the time a chain plays under a sequencer’s segment timing.
The chain is segmented as
convert()segments it under the same options, without writing a cache, and walked as the scan plays it. Conversion options this does not need (cache_ext,wave_budget) are accepted and ignored, so the optionsconvert()takes can be passed whole.- Parameters:
seq_path (Path | str) – The first file of the chain.
system (pypulseqpp.Opts) – Limits and rasters the scan is segmented under.
timing (SequencerTiming) – The sequencer’s segment timing.
vendor (int, default=0) –
PULSEG_VENDOR_*code, as forconvert().label_column_map (Sequence[int], default=(0, 1, 2)) – Label state indices of the three readout label columns, as for
convert().profile (VendorProfile, default=None) – What the cache holds its numbers as, as for
convert().grouping (Grouping, default=None) – How a repetition’s blocks are grouped into segments, as for
convert().designed (list[tuple[Path, pypulseqpp.Sequence]], default=None) – The chain as designed, segmented in place of reading the files, as for
convert().
- Raises:
ValueError – If a file of the chain cannot be read or segmented.