enrich_acquisition#
- pulserver.proxy.enrich_acquisition()[source]#
Stamp row
indexof the table on one acquisition, in place.Sets the encoding counters, flags,
sample_time_usandencoding_space_ref, andcenter_sampleunless k does not move across the readout, in which case the received value stays. A readout whose k moves gets it astraj, trailing constant axes dropped, unless it is a Cartesian readout sampled on its flat top alone. The receivedposition, the field-of-view centre, is moved alongslice_dirto the centre of the readout’s slice (SequenceTable.slice_offset_m), and along each axis to the centre of the voxel an FFT reconstructs there,SequenceTable.grid_offset_m(), so that the reconstruction grid is centred on the field of view.The samples are left as received, except where
SequenceTable.readout_phase_modulation()gives a phase, with the object atfov_offset_mwhen given, moved by the grid offset. That is the part of a shifted field of view a receiver cannot apply itself: under a gradient that holds one value, a shift is a phase and a frequency offset, but under one that does not, the phase curves over the readout and is applied here; and the half voxel that centres the grid.A readout shorter than the scanner’s frame arrives padded to the frame, the longest readout of the scan, its own samples first: it is cut to the row’s count.
- Raises:
ValueError – If the acquisition has fewer samples than the row.