SequenceTable#
- class pulserver.proxy.SequenceTable[source]#
Bases:
objectThe readouts of a sequence chain as MRD describes them, in play order.
k-space is not tabulated:
readout_k()integrates a readout’s when asked, through theReadoutTableof its chain file.- Attributes:
counters (dict of str to ndarray) – Every label of
MRD_COUNTERSsome file of the chain writes, oneint32value per readout, 0 in a file that never writes it. A counter no file writes is absent, and 0 on every readout.flags (ndarray) –
uint64ISMRMRD flag masks: the non-boundary flags the sequence sets, first/last flags of every counter the sequence writes, andLAST_IN_MEASUREMENTon the final readout of the chain. A boundary is read within its encoding space and the other image-selecting counters, so a slice closes once per echo.center_sample, num_samples (ndarray) – As
ReadoutTablestates them, over the chain.trajectory_dimensions (ndarray) –
int8axes of k a readout carries as its trajectory: every axis its encoding space varies along, up to the last, including those constant across the readout; 0 for a readout whose k does not move and for every readout of a Cartesian space notTableSpace.ramp_sampled.sample_time_us (ndarray) –
float32dwell, in µs.encoding_space (ndarray) –
int32index intospaces.slice_offset_m (ndarray) –
float64centre of each readout’s slice along the logical slice axis from the field-of-view centre, in m: theSlicePositionsentry itsSLCindexes, in a file whose readouts are slices of a stack (TableSpace), and 0 elsewhere.spaces (tuple of TableSpace) – Numbered in chain order: each subsequence’s primary space, then its navigator space when it has
NAVreadouts.sequence_parameters (dict of str to list of float) – From the
SequenceDefinitionsof the main sequence, the last of the chain, so that a prescan, such as the gradient-echo calibration ahead of an accelerated EPI, does not annotate the images: theTRandTIminima and every distinctTEin ascending order, in ms, and every distinctFlipAnglein ascending order, in degrees. A parameter the main sequence neither defines nor measures is taken over the whole chain; keys no file defines or measures are absent.fov_offset_m (tuple of float) – The field-of-view shift the scanner plays the chain at, in m, along the axes the design’s blocks are rotated onto, as
pulserver.ir.prescribe()takes it.diffusion (tuple of ndarray or None) –
(b, g)read from the table file the first file of the chain to name one names (pypulseqpp.io.get_diffusion_table()); None when no file names one or the table cannot be read.recon_parameters (dict of str to str) – The definitions the chain’s files list in
ReconParameters(pulserver.design.recon_parameters()), by name, their values as written; a later file’s value replaces an earlier one’s.
Methods
Return where one readout's reconstruction grid puts its centre voxel, in m along the logical axes. |
|
Tabulate the |
|
Return the k-space position of each sample of one readout, in 1/m. |
|
Return the phase one readout's samples are corrected by, in rad, or None. |
Attributes