atef.procedure

Dataclasses for describing active checkout procedures. These dataclasses come in normal (edit) and Prepared (run) variants

Edit variants hold data needed to specify the step. Prepared variants hold a reference to their originating edit-step, along with Result objects and a .run() method.

Adding a step requires: - write the edit-variant - add the edit-variant to the AnyProcedure type hint - write the run-variant, along with its ._run() and .from_origin() methods - add the step to PreparedProcedure.from_origin classmethod case statement

Functions

create_prepared_comparison(check[, parent])

get_RE_data(bs_state, plan_data)

Get databroker data from the GlobalRunEngine from the plan specified by plan_data.

get_bs_state(dclass)

Get the BlueskyState instance corresponding to dclass.

Classes

CodeStep(name, description, parent, ...)

Run source code in a procedure.

ComparisonToPlanData(name, plan_id, plan_no, ...)

ComparisonToTarget([name, device, attr, pv, ...])

ConfigurationCheckStep(name, description, ...)

Step which checks device configuration versus a given timestamp.

DescriptionStep([name, description, parent, ...])

A simple title or descriptive step in the procedure.

DeviceConfiguration(archiver_timestamp, values)

Device configuration for comparison.

DisplayOptions(macros, str] =, template, embed)

Options for a typhos or PyDM display.

FailedStep(parent, origin, combined_result, ...)

A step that failed to be prepared for running.

PassiveStep(name, description, parent, ...)

A step that runs a passive checkout file

PlanData(name, plan_id, plan_no, ...)

PlanOptions(name, plan, args, kwargs, ...)

Options for a bluesky plan scan.

PlanStep(name, description, parent, ...)

A procedure step comprised of one or more bluesky plans.

PreparedDescriptionStep(name, origin, ...)

PreparedPassiveStep(name, origin, parent, ...)

PreparedPlan(name, origin, parent, item, ...)

PreparedPlanComparison(cache, identifier, ...)

Unified representation for comparisons to Bluesky Plan data

PreparedPlanStep(name, origin, parent, ...)

PreparedProcedureFile(file, root)

A Prepared Procedure file.

PreparedProcedureGroup(name, origin, parent, ...)

PreparedProcedureStep(name, origin, parent, ...)

Base class for a ProcedureStep that has been prepared to run.

PreparedSetValueStep(name, origin, parent, ...)

PreparedTemplateStep(name, origin, parent, ...)

PreparedValueToSignal(name, signal, value, ...)

ProcedureFile(version, root)

File comprised of several Procedure steps

ProcedureGroup(name, description, parent, ...)

A group of procedure steps (or nested groups).

ProcedureStep([name, description, parent, ...])

A basic step in an atef procedure.

PydmDisplayStep(name, description, parent, ...)

A procedure step which a opens a PyDM display.

SetValueStep(name, description, parent, ...)

A step that sets one or more values and checks one or more values after

Target([name, device, attr, pv])

A destination for a value.

TemplateStep(name, description, parent, ...)

A procedure step that replaces items an existing checkout

TyphosDisplayStep(name, description, parent, ...)

A procedure step which opens one or more typhos displays.

ValueToTarget([name, device, attr, pv, ...])