You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `omc3` package is `Python 3.7+` compatible, but not yet deployed to PyPI.
6
-
The best way to install is though python -m pip and VCS:
5
+
The package is deployed to `PyPI` and installation is easily done via `pip`:
7
6
8
7
```bash
9
-
git clone https://github.com/pylhc/omc3
10
-
python -m pip install /path/to/omc3
8
+
python -m pip install omc3
11
9
```
12
10
13
-
Or simply from the online master branch, which is stable:
11
+
Additionally, some features require access to the CERN Technical Network and require CERN-specific dependencies.
12
+
Those are installable from the CERN [Acc-Py][accpy_docs]{target=_blank .cern_internal} index through the `cern` extra, and can be installed from the CERN network or by providing the `index-url`:
After installing, codes can be run with either `python -m omc3.SCRIPT --FLAG ARGUMENT` or calling path to the `.py` file directly.
20
19
21
20
## Functionality
22
21
22
+
For detailed information on the various parts of the package, please refer to the [documentation][omc3_docs]{target=_blank}.
23
+
23
24
### Main Scripts
24
25
25
26
Main scripts to be executed lie in the `/omc3` module directly. These include:
26
27
27
28
-`hole_in_one.py` to perform frequency analysis on turn by turn BPM data and infer optics (and more) for a given accelerator.
28
-
-`madx_wrapper.py` to start a `MAD-X` run with a file or string as input.
29
-
-`model_creator.py` to provide optics models required for optics analysis.
30
-
-`run_kmod.py` to analyse data from K-modulation and return the measured optics functions.
31
-
-`tbt_converter.py` to convert different turn by turn datatypes to sdds, and add noise.
29
+
-`kmod_importer.py` to average, import and calculate lumi-imbalace K-modulation results.
30
+
-`knob_extractor.py` to extract from `NXCALS` the value of given knobs in the machine at a given time.
31
+
-`model_creator.py` to generate optics models required for optics analysis.
32
+
-`global_correction.py` to calculate corrections from measurement files.
33
+
-`response_creator.py` to provide correction response files.
34
+
-`tbt_converter.py` to convert different turn by turn data types to `SDDS`, potentially adding noise.
32
35
-`amplitude_detuning_analysis.py` to perform amp. det. analysis on optics data with tune correction.
36
+
-`madx_wrapper.py` to start a `MAD-X` run with a file or string as input.
33
37
34
38
### Plotting Scripts
35
39
@@ -39,14 +43,25 @@ Plotting scripts for analysis outputs can be found in the `/omc3/plotting` submo
39
43
-`plot_bbq.py` to generate plots from files generated by BBQ analysis.
40
44
-`plot_amplitude_detuning.py` to generate plots from files generated by amplitude detuning analysis.
41
45
-`plot_optics_measurements.py` to generate plots from files generated by optics_measurements.
42
-
-`plot_tfs.py` all purpose tfs-file plotter.
46
+
-`plot_tfs.py` to plot TFS file contents.
47
+
-`plot_kmod_results.py` to plot the beta and waist of the K-modulation results.
43
48
44
49
### Other Scripts
45
50
46
51
Other general utility scripts are in `/omc3/scripts` module:
47
52
48
53
-`update_nattune_in_linfile.py` to update the natural tune columns in the lin files by finding the highest peak in the spectrum in a given interval.
49
-
-`write_madx_macros.py` to generate `MAD-X` tracking macros with observation points from a twiss file.
50
-
-`merge_kmod_results.py` to merge lsa_results files created by kmod, and add the luminosity imbalance if the 4 needed IP/Beam files combination are present.
54
+
-`write_madx_macros.py` to generate `MAD-X` tracking macros with observation points from a TWISS file.
55
+
-`merge_kmod_results.py` to merge LSA results files created by kmod, and add the luminosity imbalance if the 4 needed IP/Beam files combination are present.
56
+
-`fake_measurement_from_model.py` to create a fake measurement based on a model TWISS file.
57
+
-`betabeatsrc_output_converter.py` to convert outputs from our old codes to `omc3`'s new standardized format.
58
+
-`linfile_clean.py` to automatically clean given columns in lin files.
59
+
-`kmod_average.py` to calculate the average of multiple K-modulation measurements.
60
+
-`kmod_import.py` to import a K-modulation measurement into an optics-measurement directory.
61
+
-`kmod_lumi_imbalace.py` to calculate the luminosity imbalance between two IPs from averaged K-modulation files.
62
+
-`bad_bpms_summary.py` to collect and summarize the bad BPMs from GUI runs.
51
63
52
64
A typical analysis workflow with `omc3` is described in the [next page](analysis.md).
0 commit comments