Machine Settings Info¶
See the docs for a detailed code description.
Prints an overview over the machine settings at a provided given time, or the current settings if no time is given.
Can be run from command line, parameters as given in machine_settings_info.main
.
usage: machine_settings_info.py [-h] [--time TIME] [--start_time START_TIME]
[--knobs KNOBS [KNOBS ...]] [--accel ACCEL]
[--output_dir OUTPUT_DIR] [--knob_definitions]
[--source SOURCE] [--log]
optional arguments:
-h, --help show this help message and exit
--time TIME UTC Time as 'Y-m-d H:M:S.f' format or ISO.
Acts as point in time or end time
(if ``start_time`` is given).
--start_time START_TIME
UTC Time as 'Y-m-d H:M:S.f' format.
Defines the beginning of the time-range.
--knobs KNOBS [KNOBS ...]
List of knobnames.
--accel ACCEL Accelerator name.
--output_dir OUTPUT_DIR
Output directory.
--knob_definitions Set to extract knob definitions.
--source SOURCE Source to extract data from.
--log Write summary into log
(automatically done if no output path is given).
Usage Examples
Displaying basic summary information (beam process, fill, optics etc.), right now:
python -m pylhc.machine_settings_info
Querying the default knobs trims, right now:
python -m pylhc.machine_settings_info --knobs default
Querying the default knobs trims at a given time, and writing the output to a file:
python -m pylhc.machine_settings_info --knobs default --time "2022-10-19 17:00:00.0" --output_dir .