mxcubecore.HardwareObjects.BeamlineActions#

Classes

AnnotatedCommand(beamline_action_ho, name, ...)

BeamlineActions(*args)

ControllerCommand(name[, cmd, username, klass])

HWObjActuatorCommand(name, hwobj)

Class for two state hardware objects

class mxcubecore.HardwareObjects.BeamlineActions.BeamlineActions(*args)[source]#

Bases: HardwareObject

execute_command(name, args)[source]#

Execute command.

Parameters:
  • command_name (str) – Command name.

  • *args (tuple) – Arguments to pass through to the command to be executed.

  • **kwargs (Dict[str, Any]) – Named arguments to pass through to the

  • executed. (command to be) –

Raises:

AttributeError – If command not found.

Returns:

Execution output.

Return type:

Any

get_commands()[source]#

Get object commands.

Yields:

Generator[CommandObject, None, None] – Command objects.

init()[source]#

Hardware object init.

class mxcubecore.HardwareObjects.BeamlineActions.HWObjActuatorCommand(name, hwobj)[source]#

Bases: CommandObject

Class for two state hardware objects

value()[source]#

Return the current command vaue. :returns: The value as a string :rtype: (str)