mxcubecore.HardwareObjects.MAXIV.MachInfo#

Functions

catch_errors(func)

run wrapped function, catching all exception

cleanhtml(raw_html)

Classes

MachInfo(*args)

Machine info hardware object for MAXIV site.

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

Bases: AbstractMachineInfo

Machine info hardware object for MAXIV site.

Provides to the user general information about the machine, such as ring status, current, operator message, etc.

This hardware objects fetches the information from attributes of specified tango devices.

Hardware object properties:

mach_info (str): name of the machine status tango device current (str): name of the ring status tango device parameters (str): topics to export, see AbstractMachineInfo class for details

get_current(**kw)[source]#

Read the ring current.

Returns:

Current [mA].

get_lifetime(**kw)[source]#

Read the lifetime.

Returns:

Lifetime [s].

get_message(**kw)[source]#

Read the operator’s message.

Returns:

Message.

init()[source]#

Get the attributes to be defined as keys in the _machine_info_dict

mxcubecore.HardwareObjects.MAXIV.MachInfo.catch_errors(func)[source]#

run wrapped function, catching all exception

If an exception as raised, log the exception and return ‘unknown’