mxcubecore.HardwareObjects.EMBL.EMBLEnergyScan#

Classes

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

Bases: AbstractEnergyScan, HardwareObject

adjust_transmission(state)[source]#

Enables/disables usage of maximal transmission set during the energy scan

do_chooch(elt, edge, scan_directory, archive_directory, prefix)[source]#

Use chooch to calculate edge and inflection point The brick expects the folowing parameters to be returned: pk, fppPeak, fpPeak, ip, fppInfl, fpInfl, rm, chooch_graph_x, chooch_graph_y1, chooch_graph_y2, title)

emit_new_data_point(values)[source]#

Adds new point to the energy scan curve

Parameters:

values (list of two floats) – values

Returns:

None

get_scan_data()[source]#

Returns energy scan data. List contains tuples of (energy, counts)

init()[source]#

Hardware object init.

scan_error_update(error_msg)[source]#

Prints error message

Parameters:

error_msg (str) – error message

Returns:

None

scan_start_update(values)[source]#

Emits new scan point

Parameters:

values (list of two floats) – list of values

Returns:

set_max_transmission(value)[source]#

Sets maximal transmission used during the energy scan

start_energy_scan(element, edge, directory, prefix, session_id=None, blsample_id=None, exptime=3)[source]#

Starts energy scan

Parameters:
  • element (str) – scan element

  • edge (str) – edge

  • directory (str) – scan directory

  • prefix (str) – scan prefix

  • session_id (int) – session id

  • blsample_id (int) – sample id

  • exptime (float) – exposure time in seconds

Returns:

True if success, otherwise returns Fals