SequencePlugin.design#
- SequencePlugin.design()[source]#
Write the sequence of a request into
directoryas signed binary Pulseq.The request is evaluated as in
validate(),generate()builds the sequence of the requested protocol, and each sequence is written intodirectory, which must exist. The request is designed as it stands: a request that evaluates to other values is designed from the values it was given, so a design that is a function of the evaluated protocol is made fromvalidate(...).values.The first file is
sequence.seq. Each later file of a chain issequence_prescan<n>.seq,ncounting from 2, orsequence_main.seqfor the last, and each file names the next as itsNextSequencedefinition, so the chain is one scan.examis passed toevaluate()andgenerate()asvalidate()passes it.- Returns:
Validation – As
validate()returns it.list of str – Written paths in play order, prescans first; empty for an invalid request, for which nothing is written.
- Raises:
TypeError – If
appreturns neither a sequence nor a list of them.