Skip to content

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

Documentation

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]"`.