Skip to content

The OMC Python Packages

Package Description Version Documentation Wiki
OMC3 Frequency analysis, optics computation from turn-by-turn data, corrections calculations and results plotting PyPI version for OMC3
TFS-Pandas TFS files I/O functionality PyPI version for TFS-Pandas
Turn-by-Turn Particle accelerators turn-by-turn BPM measurements I/O functionality PyPI version for Turn-by-Turn
SDDS SDDS files I/O functionality PyPI version for SDDS
PyLHC-Tools Useful OMC-related scripts PyPI version for PyLHC-Tools
PyLHC-Submitter Wrapper for HTCondor job submission PyPI version for PyLHC-Submitter
Optics-Functions Calculate various beam optics functions from TFS-Dataframes PyPI version for Optics-Functions
Generic-Parser Entrypoint argument parser functionality PyPI version for Generic-Parser
Example Study Scripts Collection of example MAD-X studies GitHub release for MESS
Beta-Beat.src Frequency analysis, optics computation from turn-by-turn data and corrections calculations GitHub release for Beta-Beat.src

The OMC Python Ecosystem

This section of the website goes over our Python computing and analysis softwares and environments. Our main software for optics analysis exists in two versions: a legacy Python 2 version, Beta-Beat.src, and its Python 3 successor omc3. Development of Beta-Beat.src is limited to bug fixes while new features are reserved for omc3.

Our other packages provide useful tools and scripts for our day-to-day work as well as specific I/O functionality and entrypoint utilities for our codes. All our Python codes, including legacy repositories, can be found on the PyLHC organisation's page on Github.

The OMC Production Environments

The OMC Python 3 production environment for use for instance in the CCC is based on the CERN BE/CO Acc-Py distribution, although an OMC-specific one. The environment, along with many of our important files, is located in the /afs/cern.ch/eng/sl/lintrack/ directory on afs.

The environment is located at /afs/cern.ch/eng/sl/lintrack/omc_python3/ and can be used in two different ways:

  • Activate the environment (source /afs/cern.ch/eng/sl/lintrack/omc_python3/bin/activate) then run python to execute your programs.
  • Point to the Python executable directly (/afs/cern.ch/eng/sl/lintrack/omc_python3/bin/python) to execute your programs.

Modifying the Environment

You cannot modify this environment, unless you are one of the maintainers. Should you need specific packages, reach out to us or consider setting up your own environment from our Acc-Py distribution.

Python 2 Environment

We do have a miniconda2 installation in lintrack for legacy Python2 codes. This distribution is frozen and the use of Python 2 codes should be avoided as much as possible.