Skip to content

Commit 659ddd6

Browse files
committed
do optics dialog
1 parent 3b2d39a commit 659ddd6

File tree

3 files changed

+57
-3
lines changed

3 files changed

+57
-3
lines changed

docs/guis/betabeat/analysis_panel.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,10 @@ So this is the same as _Points_ but with additional lines between the markers.
325325

326326
Two methods are available to save the chart to file:
327327

328-
- ++"GUI"++:
328+
- ++"GUI"++ :
329329
This button will open a dialog asking you where to save the **chart component directly from java** as a **PNG file**.
330330
The output will look exactly like the chart in the GUI, as it is rendered directly from `java`.
331-
- ++"PDF"++:
331+
- ++"PDF"++ :
332332
This button allows you pass the currently selected data to the [`plot_spectrum` script][omc3_plot_spectrum] to save the spectrum as a **PDF file**.
333333
As the spectrum is completely rendered in `python` the output will look different from the chart in the GUI, but will show in general the same information, with some important caveats listed below.
334334

@@ -355,6 +355,9 @@ As the spectrum is completely rendered in `python` the output will look differen
355355

356356
## Do Optics Dialog
357357

358+
The ++"Get Optics"++{.green-gui-button} button opens a dialog that allows you to select the settings for the [optics analysis][optics_analysis],
359+
which will calculate the optics parameters based on the spectra of the [currently selected files](#loading-files).
360+
358361
=== "Closed Settings"
359362

360363
<figure>
@@ -368,15 +371,30 @@ As the spectrum is completely rendered in `python` the output will look differen
368371

369372
<figure>
370373
<center>
371-
<img src="../../assets/images/betabeat_gui/do_analysis_dialog_open_settings.png" width="100%" alt="The 'Do Optics' Dialog with open settings"/>
374+
<img src="../../assets/images/betabeat_gui/do_optics_dialog_settings.png" width="100%" alt="The 'Do Optics' Dialog with open settings"/>
372375
<figcaption>The "Do Optics" Dialog with open settings.</figcaption>
373376
</center>
374377
</figure>
375378

379+
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.
380+
If you don't check the _Combine Analysis_ checkbox, based on the name of the `harpy` output files as seen in the table.
381+
In any case, the results are stored in the `Results` folder, and will be automatically loaded into the [Optics Panel](optics_panel.md).
382+
383+
### Settings
384+
385+
By expanding the _Settings_ section at the bottom of the dialog
386+
you can optionally change the [settings](settings.md) of the _[Optics tab](settings.md#optics-tab)_.
387+
388+
!!! warning "Changing the Settings"
389+
This will **change the global settings** for all subsequent analysis runs,
390+
not just for the current one!
391+
You need to click the ++"Apply"++ button to actually apply these settings before the run.
392+
376393
[additional_defaults]: defaults.md#additional-gui-defaults
377394
[harpy_analysis]: ../../measurements/physics/harpy.md
378395
[bad_bpms]: ../../measurements/physics/bpm_filtering.md
379396
[amplitude_detuning_analysis]: ../../measurements/procedures/ampdet.md
397+
[optics_analysis]: ../../measurements/physics/optics.md
380398

381399
[omc3_linfile_clean]: https://pylhc.github.io/omc3/entrypoints/scripts.html#linfile-cleaning
382400
[omc3_update_nattune]: https://pylhc.github.io/omc3/entrypoints/scripts.html#update-natural-tune-in-lin-files

docs/measurements/physics/optics.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
# Optics Analysis
3+
4+
This page summarizes how the optics analysis is performed with the `measure_optics` module, from the physics point of view.
5+
If you want to know how to **use** the `measure_optics` module through `hole_in_one`, refer to the [`omc3` analysis workflow][omc3_analysis].
6+
7+
!!! todo "Implement this page"
8+
Explain how the analysis works.
9+
If too long, maybe make sections their own page?
10+
11+
## Linear Optics
12+
13+
### Phase, Phase Advance and Special Phases
14+
15+
### Beta from Phase
16+
17+
### Beta from Amplitude
18+
19+
### Action
20+
21+
### Dispersion and Normalized Dispersion
22+
23+
### Coupling
24+
25+
See [Coupling](coupling.md)
26+
27+
## Nonlinear Optics
28+
29+
### Resonance Driving Terms
30+
31+
### Combined Resonance Driving Terms
32+
33+
### Chromatic Beating
34+
35+
[omc3_analysis]: ../../packages/omc3/analysis.md

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ nav:
209209
- BPM-Calibration: measurements/physics/bpm_calibration.md
210210
- BPM-Filtering: measurements/physics/bpm_filtering.md
211211
- Harmonic Analysis: measurements/physics/harpy.md
212+
- Optics Analysis: measurements/physics/optics.md
212213
- Coupling: measurements/physics/coupling.md
213214
- K-Mod: measurements/physics/kmod.md
214215
- Linear IR Optics: measurements/physics/ir_linear_optics.md

0 commit comments

Comments
 (0)