stoner_measurement.plugins.sequence.containers.RunSequentiallyPlugin¶
- class stoner_measurement.plugins.sequence.containers.RunSequentiallyPlugin(parent: QObject | None = None)[source]¶
Bases:
_FunctionSequencePluginRun every nested step in order as one callable sub-sequence.
Use this sequence container to group several steps into one explicitly ordered operation. Its main purpose is to build a multi-step branch beneath
RunParallelPlugin: the parallel container treats the wholeRun Sequentiallycontainer as one branch, while this plugin runs its own children one after another in their displayed sequence order.The configuration panel contains a General tab for the instance name and optional sequence-list comment. There are no plugin-specific settings. The About tab contains this documentation.
When sequence code is generated, the nested steps are placed in a helper function named from
instance_name, for example_fit_branch_sequence.execute()calls that helper and any other supplied child callables in order. It returns only after the final child completes. If a child raises an exception, that exception propagates to the sequence engine and later children in this container are not run.This plugin has no hardware lifecycle, configuration values, or reported data outputs of its own. Its children retain their normal plugin behaviour and share the sequence engine namespace.
- Variables:
instance_name (str) – Python identifier used for this container in generated sequence code. It also provides the template for the helper-function name.
comment (str) – Optional note displayed beside this step in the sequence tree.
sequence_engine (SequenceEngine | None) – Inherited owning engine and its live namespace; None while detached.
- Keyword Parameters:
parent (QObject | None) – Optional Qt parent object.
Examples
With an instance named
run_sequentiallyin the sequence, use the QtConsole to inspect or edit it before running. Substitute your instance name if different; result data reflects completed steps:run_sequentially.comment = "Measure then process" run_sequentially.instance_name
- execute(sub_steps: list[Callable[[], None]]) None[source]¶
Invoke each child callable in list order.
- execute_sequence(sub_steps: list[Callable[[], None]]) None[source]¶
Implement the standard sequence-container execution contract.