SequencePlugin.evaluate#
- SequencePlugin.evaluate()[source]#
Evaluate a requested protocol, or refuse it by raising.
The hook a subclass overrides to check a protocol and to state what the console shows with it. Returning
Noneis returningEvaluation(protocol). An exception makes the protocol invalid, asvalidate()describes.The default accepts the protocol unchanged with no scan time estimate, and does not call the sequence function.
A console waits for each evaluation, so an override is a simplified design: it states the scan time exactly, an upper bound of the RF and a repetition whose gradients stand for the scan’s, and leaves to
generate()what takes a solve, an optimization or the whole scan.- Parameters:
system (pypulseqpp.Opts) – The scanner limits the sequence is designed under.
protocol (Protocol) – The requested protocol, in the units of the sequence function’s arguments.
- Returns:
The protocol to show back, the scan time and a note.
- Return type:
Evaluation or None