mxcubecore.HardwareObjects.abstract.AbstractMachineInfo#

Abstract machine info class

Classes

AbstractMachineInfo(name)

Abstract machine info - information coming from the accelerator source.

class mxcubecore.HardwareObjects.abstract.AbstractMachineInfo.AbstractMachineInfo(name)[source]#

Bases: HardwareObject

Abstract machine info - information coming from the accelerator source.

It provides only few common to all accelerators parameters.

Emits:

valueChanged: (“valueChanged”, (value,))

_mach_info_dict#

Dictionary with all the defined parameters.

_mach_info_keys#

List of keys to be present in the above dictionary.

Note

The methods to be used to fill the _mach_info_dict should start with get_ (e.g. get_current for reading the current)

abstract get_current() float[source]#

Read the ring current.

Returns:

Current [mA].

Return type:

float

get_fill_mode() str[source]#

Read the fill mode as text.

Returns:

Machine fill mode

Return type:

str

get_lifetime() float[source]#

Read the lifetime.

Returns:

Lifetime [s].

Return type:

float

get_message() str[source]#

Read the operator’s message.

Returns:

Message.

Return type:

str

get_topup_remaining() float[source]#

Read the top-up remaining time.

Returns:

Top-up remaining [s].

Return type:

float

get_value() dict[source]#

Read machine info summary as dictionary.

Returns:

Copy of the _mach_info_dict.

Return type:

dict

init()[source]#

Get the attributes to be defined as keys in the _machine_info_dict

update_value(value=None)[source]#

Emits signal valueChanged.

Parameters:

value (dict) – Dictionary with all the value