https://github.com/pylhc/pylhc
Additional tools for particle accelerator data analysis and machine information
https://github.com/pylhc/pylhc
analysis cern lhc omc optics particle-accelerators pylhc python
Last synced: about 2 months ago
JSON representation
Additional tools for particle accelerator data analysis and machine information
- Host: GitHub
- URL: https://github.com/pylhc/pylhc
- Owner: pylhc
- License: mit
- Created: 2011-10-25T12:11:50.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2025-07-25T10:36:27.000Z (4 months ago)
- Last Synced: 2025-09-05T09:02:48.370Z (2 months ago)
- Topics: analysis, cern, lhc, omc, optics, particle-accelerators, pylhc, python
- Language: Python
- Homepage: https://pylhc.github.io/PyLHC/
- Size: 104 MB
- Stars: 4
- Watchers: 15
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Zenodo: .zenodo.json
Awesome Lists containing this project
README
#
PyLHC Tools
[](https://github.com/pylhc/PyLHC/actions?query=workflow%3A%22Cron+Testing%22)
[](https://codeclimate.com/github/pylhc/PyLHC)
[](https://codeclimate.com/github/pylhc/PyLHC)
[](https://github.com/pylhc/PyLHC/)
[](https://github.com/pylhc/PyLHC/)
[](https://doi.org/10.5281/zenodo.5643602)
This package provides tools for particle accelerator physics complementing the optics measurement analysis tools of the [omc3 package](https://github.com/pylhc/omc3).
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 .
- General documentation of the OMC-Team is located at
## Installing
This package is `Python 3.7+` compatible, and can be installed through `pip`:
```bash
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:
```bash
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**](pylhc/forced_da_analysis.py))
- `Machine Settings Info` - Prints an overview over the machine settings at a given time. ([**machine_settings_info.py**](pylhc/machine_settings_info.py))
- `KickGroup Information` - Get information about KickGroups. ([**kickgroups.py**](pylhc/kickgroups.py))
- `BSRT Logger` and `BSRT Analysis` - Saves data coming straight from LHC BSRT FESA class and allows subsequent analysis. ([**bsrt_logger.py**](pylhc/bsrt_logger.py) & [**bsrt_analysis.py**](pylhc/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**](pylhc/bpm_calibration.py))
## License
This project is licensed under the `MIT` License - see the [LICENSE](LICENSE) file for details.