mxcubecore.HardwareObjects.EMBL.EMBLMachineInfo#

Hardware Object is used to get relevant machine information (current, intensity, hutch temperature and humidity, and data storage disc information). Value limits are included

Classes

EMBLMachineInfo(name)

Displays actual information about the beamline

class mxcubecore.HardwareObjects.EMBL.EMBLMachineInfo.EMBLMachineInfo(name)[source]#

Bases: HardwareObject

Displays actual information about the beamline

bunch_count_changed(value)[source]#

Bunch count changed

clear_gevent()[source]#

Clear gevent tasks

Returns:

None

cryojet_in_changed(value)[source]#

Updates cryojet status

Parameters:

value (bool) – status

Returns:

None

file_transfer_status_changed(status)[source]#

Updates info about file beeing transfered :param total: int :param pending: int :param failed: int :return:

flux_info_changed(flux_info)[source]#

Sets flux value

frontend_status_changed(value)[source]#

Update front end status :param value: :return:

get_current()[source]#

Returns machine current in mA

get_current_value()[source]#

Returns machine current in mA

get_external_value(addr)[source]#
Extracts value from the given epics address. This is very specific

implementation how to get a value from epics web tool. At first web address string is formed and then web page by urllib2 extracted. Page contains column with records. Then the last value is choosen as the last active value.

Parameters:

addr (str) – epics address

:returns : float

get_message()[source]#

Returns synchrotron state text

get_ramdisk_size()[source]#

Gets ramdisk size in bytes :return: total, free disc size in bytes and free disc in perc

get_temp_hum_values(sleep_time)[source]#

Updates temperatur and humidity values

get_values()[source]#

Returns list of values

init()[source]#

Hardware object init.

low_level_alarm_changed(value)[source]#

Low level alarm

mach_current_changed(value)[source]#

Method called if the machine current is changed

Parameters:

value (float) – new machine current

mach_energy_changed(value)[source]#

Updates machine energy value

Parameters:

value (float) – machine energy

Returns:

None

overflow_alarm_changed(value)[source]#

Overflow alarm

re_emit_values()[source]#

Emits list of values

sizeof_fmt(num)[source]#

Returns disk space formated in string

state_text_changed(text)[source]#

Function called if machine state text is changed

Parameters:

text (string) – new machine state text

undulator_gap_changed(value)[source]#

Update undulator gaps :param value: float :return:

update_machine_state()[source]#

Machine state assembly

update_sc_alarm()[source]#

Sample changer alarm