bec_lib.bl_conditions.BeamlineCondition#

class BeamlineCondition(*args, **kwargs)[source]#

Bases: ABC

Abstract base class for beamline checks.

Methods

on_failure_msg

Return a message that will be displayed if the beamline check fails.

run

Run the beamline check and return True if the beam is okay, False otherwise.

Attributes

name

Return a name for the beamline check.

abstract property name: str#

Return a name for the beamline check.

abstract on_failure_msg() str[source]#

Return a message that will be displayed if the beamline check fails.

abstract run() bool[source]#

Run the beamline check and return True if the beam is okay, False otherwise.