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)
  • KickGroup Information - Get information about KickGroups. (kickgroups.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)

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.7.2.tar.gz (48.9 kB view details)

Uploaded Source

Built Distribution

pylhc-0.7.2-py3-none-any.whl (55.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylhc-0.7.2.tar.gz
  • Upload date:
  • Size: 48.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.13

File hashes

Hashes for pylhc-0.7.2.tar.gz
Algorithm Hash digest
SHA256 ddd2f9fcff193c1d53324af1c96e85e211b5d55a238240f2d92cde5b24013fb4
MD5 63681c8a9a9ca1c7243400a2cf34ecca
BLAKE2b-256 4eea9d2211cffd2e6723a74c7841ace8c0e6be622dc845821849a42dcf628cd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylhc-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 55.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.13

File hashes

Hashes for pylhc-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d8826b6632e7287bde1db020f23bca6efc22ec044419d3660ae90b9620c8281a
MD5 23fe4a40363cbd65625225d40b16d57d
BLAKE2b-256 07c0bb6531f1024e0b0e67fe568f93d3da3afcf608e1a7e2b287aaf8ad1405ff

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