mxcubecore.HardwareObjects.ESRF.ESRFEnergyScan¶
Example xml_ configuration:
<object class="ESRF.ESRFEnergyScan">
<object href="/bliss" role="controller"/>
<config_file>/users/blissadm/local/beamline_configuration/misc/EdgeScan.dat</config_file>
<offset_keV>0.0</offset_keV>
<theoritical_edge_threshold>0.03</theoritical_edge_threshold>
<elements>
<element>
<symbol>Mn</symbol>
<energy>K</energy>
</element>
...
<element>
<symbol>U</symbol>
<energy>L</energy>
</element>
</elements>
</object>
class: ESRF.ESRFEnergyScan.ESRFEnergyScan
configuration:
config_file: /users/blissadm/local/beamline_configuration/misc/EdgeScan.dat
offset_keV: 0.0
theoritical_edge_threshold: 0.03 # optional
element:
-
element:
- symbol: Mn
emergy: K
...
-
element:
- symbol: U
emergy: L
objects:
controller: bliss.yaml # optional
Functions
|
Classes
|
|
|
- class mxcubecore.HardwareObjects.ESRF.ESRFEnergyScan.ESRFEnergyScan(name)[source]¶
Bases:
AbstractEnergyScan- class HOConfig(*, offset_keV: float | None = None, theoritical_edge_threshold: float = 0.03, config_file: str, **extra_data: Any)[source]¶
Bases:
HOConfig- Parameters:
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- 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