Console.scan#
- Console.scan()[source]#
Scan a stored design on the exam’s phantom; return the reconstruction’s status.
emitreceives the scan clock after each span played, as{"clock": s, "duration": s}, then the reconstruction’s images as DICOM,{"dicom": base64, "name": file name}, converting those it returns as MRD, and its texts as{"text": ...}. Withsound, each clock also carries the span’s sound assound, base64 of 16-bit little-endian stereo samples atrateHz. At a speed, the scan is simulated ahead of its clock, and until the clock startsemitreceives{"preparing": s}about twice a second, with the wall-clock time left before it does, ornullbefore there is an estimate. The status is 1 when a text reports a refused or failed series, or when the scan is cancelled.A scan plays on the phantom’s isochromats in the slabs its excitation pulses excite, at the spacing
max_isochromatsallows. Scans of an exam that excite the same slabs play on the same isochromats, each from equilibrium, which keeps the pulses the engine has computed; a scan started while another plays has isochromats of its own.reconnames the reconstruction plugin. Without it, a design of a shipped scanner sequence is reconstructed with the shipped reconstruction paired with it inpulserver._zoo.ZOO_PAIRS. A console that reconstructs nothing ignores it.- Raises:
ValueError – If the console reconstructs,
reconisNoneand the design is not of a shipped scanner sequence, as an imported design is not.