PyLHC Tools¶
This package is a collection of useful scripts and tools for the Optics Measurements and Corrections group (OMC) at CERN. It provides tools which can be useful for working with accelerators, but are not necessary for optics measurements analysis.
Functionality¶
- Forced DA Analysis - Script to analyse forced DA.
- Machine Settings Info - Prints an overview over the machine settings at a given time.
- BSRT Logger and BSRT Analysis - Saves data coming straight from LHC BSRT FESA class and allows subsequent analysis.
- BPM Calibration - Script to compute the calibration factors for the LHC BPMs.
- Display Kickgroups - Script to load kick groups and display relevant information.
Documentation¶
- Autogenerated docs via
sphinx
.
Getting Started¶
This package is Python 3.7+
compatible, and can be installed through pip
:
python -m pip install pylhc
After installing, codes can be run with either python -m pylhc.SCRIPT --FLAG ARGUMENT
or calling path to the .py
file directly.
Note: similarly to omc3
, some of the scripts access functionality only available on the CERN Technical Network. To use those, you should make sure to install the relevant extra dependencies with:
python -m pip install --index-url http://acc-py-repo.cern.ch:8081/repository/vr-py-releases/simple --trusted-host acc-py-repo.cern.ch "pylhc[cern]"`.