Scan

Contents

Scan#

class pulserver.virtual.Scan[source]#

Bases: object

The cache beside a sequence file acquired of a phantom’s tissue by the Fourier engine, against a scan clock.

The blocks are acquired as FourierPlayer acquires them.

Parameters:
  • seq_path (Path | str) – The first file of the sequence’s chain, beside its cache.

  • tissue (Tissue) – The phantom’s tissue.

  • cache_ext (str, default='.pseg') – The extension of the cache beside each file.

  • rotation (np.ndarray, default=None) – (3, 3) rotation of the prescription from logical to physical axes, a reflection included; the identity by default.

  • centre (np.ndarray, default=None) – (3,) the prescription’s centre along the physical axes, in m; the isocentre by default.

  • device (str, default=None) – Where the Fourier engine runs, as FourierPlayer takes it.

  • motion (RigidMotion, default=None) – How the subject moves, as FourierPlayer takes it.

  • girf (Girf, default=None) – The gradients’ impulse response, as FourierPlayer takes it.

Methods

chunks

Play the scan in spans of whole blocks; yield each once released.

Attributes

duration

The scan's duration, in s.