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)#

Bases: ActuatorAdapterBase

Adapter for MachineInfo like objects.

get_attributes()#

Read the information from the HO. Format the output.

get_value() → HOMachineInfoModel#

Retrieve value from underlying hardware object.

Returns:

The value.

Return type:

(str)

Raises:

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

limits()#

Get the detector distance limits.

Returns:

The detector distance limits.

state()#

Retrieve the state of the underlying hardware object as a JavaScript string.

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

Return type:

(str)

stop()#

Stop an action/movement.