|
1 | 1 | # The beam selection Window |
2 | 2 |
|
| 3 | +!!! tip "Setting Your Defaults" |
| 4 | + You can set all entries in this window to your preferred defaults for a quick start! |
| 5 | + Check the [Defaults Page](defaults.md) for more details. |
| 6 | + |
3 | 7 | !!! todo |
4 | 8 | Include screenshot of Beam-Selection Window and describe the settings. |
5 | 9 |
|
| 10 | +### Python |
6 | 11 |
|
7 | | -!!! tip "Setting Your Defaults" |
8 | | - The GUI defaults to specific locations for which `Beta-Beat.src` directory to use, the input path of you data, etc. |
9 | | - Different key-value pairs can be set inside for the desired defaults, for example: |
10 | | - |
11 | | - ```bash |
12 | | - beam = LHCB1_RUNII_2018 |
13 | | - inputPath = /some/afs/location/with/your/data/ |
14 | | - outputPath = /some/afs/location/with/your/results/ |
15 | | - betaBeatPath = /some/afs/location/with/your/Beta-Beat.src/ |
16 | | - loadData=True |
17 | | - ``` |
18 | | - These values can be set by a file named `bbgui_user.properties` (with the above syntax) in either the current working directory, from where you run the GUI, or in your home folder. |
19 | | - The latter is only used if there is no such file in the current working directory. |
20 | | - |
21 | | - If you want to use a specific file located anywhere, you can also give the path to this file as the first and only argument when starting the GUI. |
22 | | - It is also possible to set each of these default values by passing them as flag arguments to the GUI call, e.g: |
23 | | - |
24 | | - ``` |
25 | | - --beam LHCB1_RUNII_2018 --inputPath /some/afs/location/with/your/data/ |
26 | | - ``` |
27 | | - |
28 | | -??? tip "Additional Default Settings" |
29 | | - Additionally, there are some settings that can only be set via arguments. |
30 | | - Their keys and default values are: |
31 | | - |
32 | | - ```bash |
33 | | - oldFolderStructure=True |
34 | | - consoleLogging=False |
35 | | - checkFreeSpace=False |
36 | | - ``` |
| 12 | +In the Beam-Selection Window you need to give it a python-binary (e.g. `venv/bin/python`). |
| 13 | +Best would be if you have a local virtual environment. |
| 14 | +This **needs to have omc3 installed as a package**. |
| 15 | +See [omc3 on github][omc3_github_getting_started]{target=_blank}. |
| 16 | +```bash |
| 17 | +pip install git+https://github.com/pylhc/omc3.git |
| 18 | +``` |
| 19 | +This is because python calls are now made by module, i.e.: |
| 20 | +```bash |
| 21 | +python -m omc3.module arg1 arg2 ... |
| 22 | +``` |
37 | 23 |
|
38 | | - - `oldFolderStructure` refers to the folder structure, where the `models` folder is at top level and contains the machines as subdirectories. |
39 | | - Setting this value to `False` assumes (and creates) the models in a `Models` folder on the same level as `Measurements` and `Results`, i.e. within the machine-folders. |
40 | | - - `consoleLogging` activates additional logging into the terminal. |
41 | | - The effect is only visible if the GUI was started from the console. |
42 | | - - `checkFreeSpace` activates a quick check of the available space upon start of the GUI. |
43 | | - The result of this check is logged in the console, and hence also only visible if the GUI is started via terminal command. |
0 commit comments