DesignStore#
- class pulserver.host.DesignStore[source]#
Bases:
objectThe designs of one scan, each in
<root>/<scan>/<id>/and immutable once written.A store root holds one directory per scan, named by whatever plays it: a scanner names it after the scan, and the reconstruction finds a series’ design from the scan and the identifier its header carries. A design directory holds the Pulseq files of its chain, its IR cache and
MANIFEST. It is written in a stage and renamed into place, so a reader sees a design whole or not at all, and two processes writing one design leave one directory. A scan plays one design, so committing a design removes the scan’s others. A design whose sequence setsEnablePmcis published with its scan’s empty pose file,<root>/<scan>/motion.buf.- Parameters:
- Raises:
ValueError – If
scanis not a directory name.
Methods
Publish a staged directory as the design of |
|
Return the directory of a design, whether or not it exists. |
|
Return the identifier of the stored design with this identity, or |
|
Return a stored design's manifest. |
|
Return a stored design as a bundle: a gzip-compressed tar of its files. |
|
Store a bundle |
|
Create an empty directory to write a design into. |