Skip to content

Commit f0e5d9d

Browse files
committed
update information on getting started page
1 parent 9925068 commit f0e5d9d

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

docs/packages/omc3/getting_started.md

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
11
# Getting Started with OMC3
22

3-
## Quick start
3+
## Installing
44

5-
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`:
76

87
```bash
9-
git clone https://github.com/pylhc/omc3
10-
python -m pip install /path/to/omc3
8+
python -m pip install omc3
119
```
1210

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`:
1413

1514
```bash
16-
python -m pip install git+https://github.com/pylhc/omc3.git
15+
python -m pip install --index-url http://acc-py-repo.cern.ch:8081/repository/vr-py-releases/simple --trusted-host acc-py-repo.cern.ch "omc3[cern]"
1716
```
1817

1918
After installing, codes can be run with either `python -m omc3.SCRIPT --FLAG ARGUMENT` or calling path to the `.py` file directly.
2019

2120
## Functionality
2221

22+
For detailed information on the various parts of the package, please refer to the [documentation][omc3_docs]{target=_blank}.
23+
2324
### Main Scripts
2425

2526
Main scripts to be executed lie in the `/omc3` module directly. These include:
2627

2728
- `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.
3235
- `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.
3337

3438
### Plotting Scripts
3539

@@ -39,14 +43,25 @@ Plotting scripts for analysis outputs can be found in the `/omc3/plotting` submo
3943
- `plot_bbq.py` to generate plots from files generated by BBQ analysis.
4044
- `plot_amplitude_detuning.py` to generate plots from files generated by amplitude detuning analysis.
4145
- `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.
4348

4449
### Other Scripts
4550

4651
Other general utility scripts are in `/omc3/scripts` module:
4752

4853
- `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.
5163

5264
A typical analysis workflow with `omc3` is described in the [next page](analysis.md).
65+
66+
[accpy_docs]: https://wikis.cern.ch/display/ACCPY/Accelerating+Python+Home
67+
[omc3_docs]: https://pylhc.github.io/omc3/

0 commit comments

Comments
 (0)