mxcubecore.HardwareObjects.ESRF.ESRFEnergyScan#
Example xml_ configuration:
<object class="ESRF.ESRFXRFSpectrum">
<object href="/bliss" role="controller"/>
<cfgfile>/users/blissadm/local/beamline_configuration/misc/15keV.cfg</cfgfile>
<default_integration_time>3</default_integration_time>
<default_energy_range>[2.0, 15]</default_energy_range>
<cfg_energies>[15]</cfg_energies>
</object>
Functions
|
Classes
|
|
|
- class mxcubecore.HardwareObjects.ESRF.ESRFEnergyScan.ESRFEnergyScan(name)[source]#
Bases:
AbstractEnergyScan
- do_chooch(elt: str, edge: str, directory: str, archive_directory: str, prefix: str)[source]#
Execute peak and IP calculation with chooch. :param elt: Element acrony as in the periodic table of elements. :type elt: str :param edge: Edge like (K, L1, L2, L3). :type edge: str :param directory: raw data directory (fill path). :type directory: str :param archive_director: archive data directory (fill path). :type archive_director: str :param prefix: File root prefix. :type prefix: str
- energy_scan_hook(energy_scan_parameters: dict)[source]#
Execute actions, required before running the raw scan(like changing undulator gaps, move to a given energy… These are in general beamline specific actions.
- Parameters:
energy_scan_parameters (dict) –
- execute_command(command_name, *args, **kwargs)[source]#
Execute command.
- Parameters:
- Raises:
AttributeError – If command not found.
- Returns:
Execution output.
- Return type:
Any
- execute_energy_scan(energy_scan_parameters: dict)[source]#
Execute the raw scan sequence. Here is where you pass whatever parameters you need to run the raw scan (e.g start/end energy, counting time, energy step…).
- Parameters:
energy_scan_parameters (dict) –
- get_static_parameters(config_file: str, element: str, edge: str) dict [source]#
Get the static parameters for form the config file. :param config_file: File to read the configuration from (full path). :type config_file: str :param element: Element acronym as in the periodic table of elements. :type element: str :param edge: edge line (K, L1, L2, L3) :type edge: str