Skip to main content

An accelerator physics script collection for the OMC team at CERN.

Project description

PyLHC Tools

Cron Testing Code Climate coverage Code Climate maintainability (percentage) GitHub last commit GitHub release DOI

This package provides tools for particle accelerator physics complementing the optics measurement analysis tools of the omc3 package. It is a collection of useful scripts for the Optics Measurements and Corrections team (OMC) at CERN, with functionality for data analysis, corrections calculation, simulations management and machine information extraction.

Documentation

Installing

This package is Python 3.7+ compatible, and can be installed through pip:

python -m pip install pylhc

After installing, scripts can be run with either python -m pylhc.SCRIPT --FLAG ARGUMENT or by calling the Python files directly.

For development purposes, we recommend creating a new virtual environment and installing from VCS in editable mode with all extra dependencies:

git clone https://github.com/pylhc/pylhc
python -m pip install --editable "pylhc[all]"

Note: Some 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 "pylhc[cern]".

Functionality

  • Forced DA Analysis - Script to analyze forced DA. (forced_da_analysis.py)
  • Machine Settings Info - Prints an overview over the machine settings at a given time. (machine_settings_info.py)
  • BSRT Logger and BSRT Analysis - Saves data coming straight from LHC BSRT FESA class and allows subsequent analysis. (bsrt_logger.py & bsrt_analysis.py )
  • BPM Calibration Factors - Compute the BPM calibration factors using ballistic optics. Two methods are available: using the beta function and using the dispersion. (bpm_calibration.py)
  • IR NonLinear RDT Correction - Script to compute RDT correction in the (HL)LHC IRs including feed-down effects. (irnl_rdt_correction.py)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylhc-0.4.0.tar.gz (53.3 kB view details)

Uploaded Source

Built Distribution

pylhc-0.4.0-py3-none-any.whl (58.7 kB view details)

Uploaded Python 3

File details

Details for the file pylhc-0.4.0.tar.gz.

File metadata

  • Download URL: pylhc-0.4.0.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for pylhc-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ced7f7ccd40828c3ae901ea953d84c8b40177a360d570c75d1b709f170510c0e
MD5 e7594b4c6f5232242ff3081a9c535c88
BLAKE2b-256 4a82aeaaa02b3046feab9bbf84f34853c12b2cc8abd5eac3408fbc4c93742d5e

See more details on using hashes here.

File details

Details for the file pylhc-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pylhc-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 58.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for pylhc-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3079becd133fd2d81b449d0a03c5c6ee0ed63271371432baa72d1cdd467667dd
MD5 64ab0695b90bf3a2cff5a0aa93759686
BLAKE2b-256 5c30167110447f55571d72d5be722adf8643ebdc11f49843e32f167012b57d78

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page