Skip to content

Commit 5247f64

Browse files
committed
Merge branch 'user_guide_updates_bpm_panel' into user_guide_updates_bbgui_analysis_panel
2 parents c922ed0 + 27e3704 commit 5247f64

File tree

2 files changed

+77
-12
lines changed

2 files changed

+77
-12
lines changed

docs/guis/betabeat/bpm_panel.md

Lines changed: 73 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ The GUI will then call the [`omc3.tbt_converter`][tbt_converter] to convert the
6060
All formats that can be read by the [`turn-by-turn` package][tbt_package] are supported.
6161
If you choose the **"DO NOT CONVERT"** option, the files are simply copied into the current `Measurements` directory.
6262

63-
!!! tip "LHC ASCII files"
63+
!!! tip "ASCII files"
6464
The old ASCII format (for SPS and LHC), which is still in use in some older conversion scripts and MAD-X tracking scripts,
6565
are identified automatically by the converter when choosing `lhc` or `sps` as the file type to be opened.
66-
Use then **the same format** for the conversion, i.e. `lhc` or `sps` respectively.
67-
This looks weird, but the converter will output the data in binary format.
66+
You can use **the same format** for the conversion, i.e. `lhc` or `sps` respectively, and the converter will output the data in binary format.
67+
You may also choose the `ascii` input format directly.
6868

6969
## Table of Loaded Files
7070

@@ -78,7 +78,6 @@ If you choose the **"DO NOT CONVERT"** option, the files are simply copied into
7878
The table at the top of the panel shows the files that are currently opened in the GUI.
7979
These are not necessarily all files present in the `Measurement` directory, as they need to be explicitly opened!
8080

81-
8281
- **File**:
8382
Name of the file, without the path.
8483
- **Bunch ID**:
@@ -145,11 +144,77 @@ The buttons on the top left side of the pane provide some features to handle the
145144

146145
## Start Analysis
147146

148-
The ++"Analyse Spectra"++{.green-gui-button} button spawns [the configuration dialog][do_analysis_dialog] for the harmonic analysis.
149-
This will call an external program to perform a frequency analysis of the BPM data **of the selected files**, in order to compute tunes and similar beam properties.
150-
The results from the analysis can be seen in the [Analysis Panel](analysis_panel.md), in which also the settings are discussed in detail.
147+
The ++"Analyse Spectra"++{.green-gui-button} button spawns [the configuration dialog](#do-analysis-dialog) for the analysis.
148+
This will call an external program to perform a frequency analysis of the BPM data [**of the selected files**](#table-of-loaded-files), in order to compute tunes and similar beam properties and (optionally) to get the optics functions from that spectrum.
149+
The **"Run optics as well"** checkbox will define whether the [_"Optics Analysis"_ in the _"Do analysis Dialog"_](#do-analysis-dialog) is automatically pre-checked.
150+
151+
### Do-Analysis Dialog
152+
153+
=== "Closed Settings"
154+
155+
<figure>
156+
<center>
157+
<img src="../../assets/images/betabeat_gui/do_analysis_dialog.png" width="100%" alt="The Do-Analysis Dialog"/>
158+
<figcaption>The Do-Analysis Dialog.</figcaption>
159+
</center>
160+
</figure>
161+
162+
=== "Open Settings"
163+
164+
<figure>
165+
<center>
166+
<img src="../../assets/images/betabeat_gui/do_analysis_dialog_open_settings.png" width="100%" alt="The Do-Analysis Dialog with open settings"/>
167+
<figcaption>The Do-Analysis Dialog with open settings.</figcaption>
168+
</center>
169+
</figure>
170+
171+
This dialog allows you to specify the settings and output for the analysis run
172+
on the currently selected files in the BPM-Panel.
173+
Click the ++"Run"++ button to start the analysis.
174+
175+
!!! warning "Parallelization"
176+
Parallelization of the analysis is only implemented on the GUI side,
177+
possibly starting multiple python processes.
178+
Check the caveats of the _"Run Per-File Tasks in Parallel"_
179+
setting in the _[GUI-Settings Tab](settings.md#gui-tab)_.
180+
181+
### Harmonic Analysis
182+
183+
Keeping the _Optics Analysis_ checkbox unchecked will only perform the harmonic analysis.
184+
185+
In this case, you will **not be able to specify an output name** for the results, as the resulting files will be **automatically** put into subfolders of the `Measurements` folder, based on the name of the `.sdds` files.
186+
They therefore usually appear within the same folder as the turn-by-turn data.
187+
188+
The analysis results are automatically loaded into the [Analysis Panel](analysis_panel.md).
189+
190+
### Optics
191+
192+
In case the _Optics Analysis_ checkbox is checked, also the optics are calculated.
193+
You have the choice to combine the analysis of all files into a single optics, using the individual measurements for statistics, in which case you need to **specify a descriptive output name** for the analysis, the prefix of which will already be provided.
194+
If you don't check the _Combine Analysis_ checkbox, the results are stored in a subfolder of the `Results` folder, based on the name of the `.sdds` files.
195+
196+
The analysis results are loaded automatically into the [Optics Panel](optics_panel.md).
197+
If you want to take a look at the spectrum, it needs to be loaded **manually**
198+
into the [Analysis Panel](analysis_panel.md) from the `Results/<Optics Output Name>/lin_files`
199+
subfolder.
200+
201+
!!! warning "Loading the `lin_files` subfolder"
202+
If the analysis files are loaded from the `lin_files` subfolder,
203+
this folder is **copied** into the `Measurements` folder,
204+
keeping the `lin_files` name.
205+
If you want to open another set of analyzed files from an `lin_files` folder, the GUI will **complain that the folder already exists**.
206+
207+
### Settings and Suffixes
208+
209+
By expanding the _Settings_ section at the bottom of the dialog
210+
you can optionally change the [settings](settings.md) for the harmonic analysis in the _[Tunes](settings.md#tunes-tab)_, _[Harpy](settings.md#harpy-tab)_, _[Cleaning](settings.md#cleaning-tab)_ and _[Accelerator](settings.md#accelerator-tab)_ tabs, as well as for the optics analysis in the _[Optics](settings.md#optics-tab)_ tab if the _Optics Analysis_ checkbox is checked.
211+
212+
The _Suffix_-field will be automatically set from your suffix-choices in the [_Harpy_ settings tab](settings.md#harpy-tab) and is only applied to the harmonic analysis output files (i.e. `.lin[xy]`, `.amps[xy]`, `.freqs[xy]`), **not to the folder names**.
151213

152-
The **"Run optics as well"** checkbox will define whether the _"Optics Analysis"_ in the _["Do analysis Dialog"][do_analysis_dialog]_ is automatically pre-checked.
214+
!!! warning "Changing the Settings"
215+
This will **change the global settings** for all subsequent analysis runs,
216+
not just for the current one!
217+
You need to click the ++"Apply"++ button to actually apply these settings before the run.
153218

154219
[tbt_converter]: https://github.com/pylhc/omc3/blob/master/omc3/tbt_converter.py
155220
[tbt_package]: https://github.com/pylhc/turn_by_turn

docs/guis/betabeat/settings.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ This is in contrast to the other settings tabs, which control the settings passe
8888

8989
- **Run Per-File Tasks in Parallel**:
9090
If active, tasks that are started together but can run independently per file will be run in individual tasks in parallel,
91-
e.g. the `harpy` analysis will be run in parallel for each turn-by-turn file, even if started with multiple files selected.
92-
Also, when running multiple optics analysis, but clicking the `Run per file` button, the analysis will be run in parallel for each file.
93-
Conversely, if `Also run optics analysis` is selected, the first step of the `harpy` analsysis will be run sequentially per file,
94-
as coordination between multiple tasks is not implemented.
91+
e.g. the `harpy` analysis will be run in parallel for each turn-by-turn file, even if started with multiple files selected at once.
92+
When running `optics analysis`, with _combine analysis_ deactivated, the analysis will be run in parallel for each file.
93+
Conversely, if the user opts to also run the `optics analysis` directly from the BPM-Panel with _combine analysis_ activated, the `harpy` analysis of the files will be run sequentially per file in python,
94+
as multiprocessing is not implemented in python.
9595

9696
## Tunes Tab
9797

0 commit comments

Comments
 (0)