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.

Return type:

(str)

Raises:

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

limits()[source]#

Get the detector distance limits.

Returns:

The detector distance limits.

state()[source]#

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()[source]#

Stop an action/movement.