mxcubeweb.core.adapter.machine_info_adapter#

Classes

MachineInfoAdapter(ho, *args)

Adapter for MachineInfo like objects

class mxcubeweb.core.adapter.machine_info_adapter.MachineInfoAdapter(ho, *args)[source]#

Bases: ActuatorAdapterBase

Adapter for MachineInfo like objects

get_attributes()[source]#

Read the information from the HO. Format the output.

get_value() HOMachineInfoModel[source]#

Retrieve value from underlying hardware object. :returns: The value. :rtype: (str)

Raises:

ValueError – When value for any reason can’t be retrieved.

Return type:

HOMachineInfoModel

limits()[source]#

Returns: The detector distance limits.

state()[source]#

Retrieves the state of the underlying hardware object and converts it to a str that can be used by the javascript front end. :returns: The state :rtype: (str)

stop()[source]#

Stop an action/movement.