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

Uploaded Source

Built Distribution

pylhc-0.8.0-py3-none-any.whl (56.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylhc-0.8.0.tar.gz
  • Upload date:
  • Size: 51.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pylhc-0.8.0.tar.gz
Algorithm Hash digest
SHA256 4cbc36fb37db22dc041d3f61d7478290f0f87fba85c092395aef2cf5fdc289d2
MD5 3c6840cc9ef7bfedf1b7ad415bdcbdda
BLAKE2b-256 d1a31eaff54dd06f88276d250f178cc17a41c78b0488adbee0ebc4877e257da0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylhc-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 56.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pylhc-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c3767f129d8f1ff2dee1e6ff6ce60d8cdf7d5042a5bddec34e579218462e11f
MD5 8aedfd8c1693622e3a0fa1c8b42988d5
BLAKE2b-256 74e5cff9a8a3b95bbc8da7a1ca01e758693bfd54ac024e58c544e6c6c24e6c09

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