An accelerator physics script collection for the OMC team at CERN.
Project description
PyLHC Tools
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
- Autogenerated docs via
Sphinx
can be found at https://pylhc.github.io/PyLHC/. - General documentation of the OMC-Team is located at https://pylhc.github.io/
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
andBSRT 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pylhc-0.4.2.tar.gz
.
File metadata
- Download URL: pylhc-0.4.2.tar.gz
- Upload date:
- Size: 53.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b671969cf732977310bb7535855d0a4dc732fd6ac2e18c031cb35045245bac3b |
|
MD5 | de262c0c8202ef0b2752978da2fe17ac |
|
BLAKE2b-256 | b4b211d5bde089b8733da9a46fb725f551828a20b15a392d948927b94a54b1e3 |
File details
Details for the file pylhc-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: pylhc-0.4.2-py3-none-any.whl
- Upload date:
- Size: 59.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b06d6ef6d9592ae7577b00892c7d708617f8d6e444dcfe58e7abfb207f1b941 |
|
MD5 | 01fd2fcb306bb27314cfc4e8fe879837 |
|
BLAKE2b-256 | 2c4d447821c1150fae82614976abdad910124015085d9fba690b4c049a030f82 |