enrich_acquisition

enrich_acquisition#

pulserver.proxy.enrich_acquisition()[source]#

Stamp row index of the table on one acquisition, in place.

Sets the encoding counters, flags, sample_time_us and encoding_space_ref, and center_sample unless k does not move across the readout, in which case the received value stays. A readout whose k moves gets it as traj, trailing constant axes dropped, unless it is a Cartesian readout sampled on its flat top alone. The received position, the field-of-view centre, is moved along slice_dir to 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 at fov_offset_m when 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.