stoner_measurement.plugins.state._xray_diffractometer_plugin.XrayDiffractometerPluginMixin

class stoner_measurement.plugins.state._xray_diffractometer_plugin.XrayDiffractometerPluginMixin[source]

Bases: object

Shared lifecycle and motion API for X-ray state-scan plugins.

configure() → None[source]

Retain the speed and mechanics configured on the shared engine.

connect() → None[source]

Connect the preferred diffractometer if necessary.

property controller_features: frozenset[str]
property counts: float

Return the detector counts from the latest snapshot.

declared_outputs() → PluginOutputs[source]

Declare configured outputs and their physical units together.

disconnect() → None[source]

Leave the shared diffractometer engine connected.

get_state() → float[source]

Return the measured coordinate corresponding to the selected axes.

is_at_target() → bool[source]

Refresh the engine state and report whether motion has completed.

property limits: tuple[float, float]

Return limits for the coordinate controlled by the selected axes.

set_state(value: float) → None[source]

Move the selected axes using the speed configured in the engine.

property theta: float

Return the latest measured theta coordinate.

property two_theta: float

Return the latest measured 2-theta coordinate.