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
Copy file name to clipboardExpand all lines: docs/guis/betabeat/analysis_panel.md
+38-17Lines changed: 38 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@ The analysis panel provides graphical interface to visualize results from harmon
9
9
</center>
10
10
</figure>
11
11
12
-
13
12
## Loading Files
14
13
15
14
The buttons at the top of the panel provide functionality to load and remove files from the analysis table as well as to start the [optics analysis](#do-optics-dialog).
@@ -26,7 +25,6 @@ The buttons at the top of the panel provide functionality to load and remove fil
26
25
</center>
27
26
</figure>
28
27
29
-
30
28
## The Time / Space Tab
31
29
32
30
In the `Time / Space` tab one can examine the phases and amplitudes over the length of the accelerator (per BPM), and can clean the values if needed.
@@ -73,18 +71,13 @@ which trigger the python [`linfile_clean` script][omc3_linfile_clean]{target="_b
73
71
</center>
74
72
</figure>
75
73
76
-
!!! warning "Default Bounds"
77
-
The cleaning script will check if the ratio of remaining data-points is inside predefined bounds to **prevent accidental removal of too much data**.
78
-
This ratio, as well as the GUI-default value for the `sigmas` and `limit` parameter can be changed [through the `bbgui_user.properties` file][additional_defaults].
74
+
!!! tip "Keep BPMs"
75
+
Some BPMs, e.g. the AC-Dipole BPMs, are required for the optics analysis and **the analysis will fail** if they are not found in the data.
76
+
You can therefore specify to **keep these BPMs** in the [GUI Cleaning section of the Cleaning Settings Tab](settings.md#gui-cleaning) and they will be kept,
77
+
even if they are outside the given [cut-offs](#clean) or identified as [outliers](#auto-clean).
79
78
80
79
#### Clean
81
80
82
-
This section allows for the most manual cleaning of the data:
83
-
84
-
#### Auto Clean
85
-
86
-
#### Undo Cleaning
87
-
88
81
=== "Before Cleaning"
89
82
90
83
<figure>
@@ -103,15 +96,41 @@ This section allows for the most manual cleaning of the data:
103
96
</center>
104
97
</figure>
105
98
106
-
!!! tip "Keep BPMs"
107
-
Some BPMs, e.g. the AC-Dipole BPMs, are required for the optics analysis and **the analysis will fail** if they are not found in the data.
108
-
You can therefore specify to **keep these BPMs** in the [GUI Cleaning section of the Cleaning Settings Tab](settings.md#gui-cleaning) and they will be kept,
109
-
even if they are outside the given cut-offs or identified as outliers.
99
+
This section allows for the most manual cleaning of the data: You can set the cursors (lines) around the data that you want to keep,
100
+
either manually by dragging their markers on the right-hand-side of the chart, or by using the ++"Set Cursors"++ button,
101
+
which will set them at the position corresponding to the _Sigmas_, i.e. the number of standard deviations away from the mean **of all data currently shown in the chart**.
102
+
Then press ++"Clean"++{.red-gui-button} to remove the data outside of the selected area, as shown in the images above.
110
103
111
-
### Additional cleaning based on the tune
104
+
!!! info "Automatic Data Selection"
105
+
The order of the cursors does not matter, and neither does the selection of data: The GUI will automatically determine the area between the cursors and check
106
+
which of the selected data sources, columns and/or files, has most (default: more than 70% of the data; see the warning admonition below) of its data in that area.
107
+
108
+
!!! warning "Default Bounds"
109
+
Before cleaning, the GUI will check if the ratio of remaining data-points is inside predefined bounds (default: `0.7`, i.e. keep at least 70%) to **prevent accidental removal of too much data**.
110
+
This ratio, as well as the GUI-default value for the `sigmas` and `limit` parameter can be changed [through the `bbgui_user.properties` file][additional_defaults].
111
+
112
+
#### Auto Clean
113
+
114
+
A more automated cleaning approach can be utilized with the help of the _outlier filter_ (see Section 3.2.3 in [Malina2018][malina2018]
115
+
or Section II.E.1 in [Dilly2023][dilly2023]), which iteratively removes points in the tails of the data until the distribution of the remaining data is close to a normal distribution.
116
+
The _limit_ parameter defines a "save zone" in standard deviations around the mean, in which data will not be removed (default: `0.0`, i.e. any datapoint could be removed).
117
+
This cleaning can be run by simply pressing the ++"Auto"++{.red-gui-button} button and is then applied to **all data currently shown in the chart**, individually per column, plane and `sdds`-file.
118
+
119
+
#### Undo Cleaning
112
120
113
-
Additionally, BPMs can be cleaned based on the tune values computed by harmonic analysis. The chart displaying the selected columns of harmonic analysis data has interactive cursors. These cursors can be moved manually to set the thresholds for tune-based cleaning - all BPMs having tune values outside of the set range will be removed. The cursors can be also automatically set to e.g. 4 sigmas deviation from the average tune values over all BPMs.
121
+
The [`linfile_clean`][omc3_linfile_clean]{target="_blank"} function automatically creates a backup of the data before cleaning,
122
+
which can be restored by pressing the buttons in this section.
123
+
Use ++"X"++ to restore the latest backup for the X-plane and ++"Y"++ for the Y-plane,
124
+
or press ++"Both"++ to restore the latest backup for both planes.
114
125
126
+
!!! warning "Backup History"
127
+
At each cleaning run a **separate backup per file** will be created.
128
+
The undo-functionality always restores the latest backup file found and then deletes it.
129
+
You can therefore undo multiple cleaning steps by pressing the buttons multiple times.
130
+
The latest backup is chosen **per `lin`-file** independently, i.e. you can go back to different states for the X and Y planes,
131
+
but **not for different columns** if you have cleaned them in the same step, as they are in the same file.
132
+
Conversely, if you cleaned another column than the currently visible one in the same file, **restoring the backup might restore the wrong column**.
133
+
If no backup was found, a warning will be logged in the [console](common_components.md#console).
115
134
116
135
## The Frequency Tab
117
136
@@ -162,6 +181,8 @@ The `Frequency` tab displays the computed spectrum for every BPM.
0 commit comments