accelerator-pyloco 0.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- accelerator_pyloco-0.4.1/.gitattributes +8 -0
- accelerator_pyloco-0.4.1/.gitignore +37 -0
- accelerator_pyloco-0.4.1/AUTHORS.md +13 -0
- accelerator_pyloco-0.4.1/GUI_DESIGN.md +969 -0
- accelerator_pyloco-0.4.1/LICENSE +201 -0
- accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/BPM_names.txt +246 -0
- accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/HCM_names_control.txt +184 -0
- accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/VCM_names_control.txt +193 -0
- accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/getset.py +45 -0
- accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/measure_orm_crash_save.py +455 -0
- accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/measuring_bpms_noise.py +113 -0
- accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/measuring_dispersion.py +263 -0
- accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/quads_names_control.txt +193 -0
- accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/set_quads_correction.py +100 -0
- accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/set_quads_correction_skew.py +100 -0
- accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/setup_env.sh +7 -0
- accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/skew_names.txt +16 -0
- accelerator_pyloco-0.4.1/PKG-INFO +16 -0
- accelerator_pyloco-0.4.1/README.md +98 -0
- accelerator_pyloco-0.4.1/p3_interface.py +195 -0
- accelerator_pyloco-0.4.1/pyLOCO/__init__.py +0 -0
- accelerator_pyloco-0.4.1/pyLOCO/analysis.py +405 -0
- accelerator_pyloco-0.4.1/pyLOCO/analytic_orm_with_normal_quad_errors.py +795 -0
- accelerator_pyloco-0.4.1/pyLOCO/analytic_orm_with_skew_quad_errors.py +911 -0
- accelerator_pyloco-0.4.1/pyLOCO/config.py +241 -0
- accelerator_pyloco-0.4.1/pyLOCO/control_system/__init__.py +32 -0
- accelerator_pyloco-0.4.1/pyLOCO/control_system/adapters.py +209 -0
- accelerator_pyloco-0.4.1/pyLOCO/control_system/backends.py +217 -0
- accelerator_pyloco-0.4.1/pyLOCO/control_system/petra.py +147 -0
- accelerator_pyloco-0.4.1/pyLOCO/control_system/pyaml_adapter.py +543 -0
- accelerator_pyloco-0.4.1/pyLOCO/control_system/pysc_diagnostics.py +62 -0
- accelerator_pyloco-0.4.1/pyLOCO/control_system/pysc_profiles.py +78 -0
- accelerator_pyloco-0.4.1/pyLOCO/control_system/pysc_server.py +69 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/__init__.py +5 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/app.py +54 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/application.py +48 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/fit_preview.py +123 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/fullfit_transaction.py +695 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/main_window.py +2233 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/model.py +624 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/multi_quadrupole_transaction.py +140 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/petra_readonly.py +161 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/petra_readonly_smoke.py +32 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/pyaml_connection.py +500 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/pyaml_transaction.py +392 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/pyaml_widget.py +804 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/quadrupole_transaction.py +173 -0
- accelerator_pyloco-0.4.1/pyLOCO/correct/quadrupole_widget.py +233 -0
- accelerator_pyloco-0.4.1/pyLOCO/data_schema/__init__.py +31 -0
- accelerator_pyloco-0.4.1/pyLOCO/data_schema/_json.py +35 -0
- accelerator_pyloco-0.4.1/pyLOCO/data_schema/correction.py +136 -0
- accelerator_pyloco-0.4.1/pyLOCO/data_schema/measurement.py +670 -0
- accelerator_pyloco-0.4.1/pyLOCO/data_schema/session.py +100 -0
- accelerator_pyloco-0.4.1/pyLOCO/dispersion_convention.py +61 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/__init__.py +28 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/app.py +68 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/appearance.py +49 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/assets/__init__.py +1 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/assets/pyloco_app_icon.png +0 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/assets/pyloco_logo.png +0 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/assets/pyloco_logo_master.png +0 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/assets/pyloco_logo_pre_resize_version.png +0 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/assets/pyloco_ring.png +0 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/backend.py +1564 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/branding.py +155 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/control_search.py +435 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/file_dialogs.py +164 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/fit_workflow.py +582 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/lattice_loader.py +92 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/machine_detection.py +83 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/main_window.py +8529 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/mapping_table.py +79 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/measurement_mapping.py +518 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/measurement_metadata.py +114 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/models/__init__.py +5 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/models/project.py +1577 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/project_info.py +18 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/reference_comparison.py +223 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/results/__init__.py +5 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/results/files_view.py +304 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/results/log_view.py +26 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/results/optics_view.py +265 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/results/orm_view.py +124 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/results/overview_view.py +291 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/results/parameters_view.py +217 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/results/plot_canvas.py +99 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/results/results_loader.py +1830 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/results/results_workspace.py +380 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/results/run_summary_view.py +105 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/results/svd_view.py +126 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/screenshots.py +138 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/suite.py +108 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/themes.py +230 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/__init__.py +1 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/orm_comparison.py +268 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/placeholders.py +95 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/project_explorer.py +212 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/reference_comparison.py +192 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/waiting_games/__init__.py +5 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/waiting_games/game_2048.py +131 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/waiting_games/game_dialog.py +67 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/waiting_games/minesweeper.py +111 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/waiting_games/sliding_puzzle.py +71 -0
- accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/waiting_games/tic_tac_toe.py +86 -0
- accelerator_pyloco-0.4.1/pyLOCO/helpers.py +73 -0
- accelerator_pyloco-0.4.1/pyLOCO/initial_fit.py +221 -0
- accelerator_pyloco-0.4.1/pyLOCO/machine_mapping.py +386 -0
- accelerator_pyloco-0.4.1/pyLOCO/measure/__init__.py +9 -0
- accelerator_pyloco-0.4.1/pyLOCO/measure/acquisition.py +463 -0
- accelerator_pyloco-0.4.1/pyLOCO/measure/app.py +38 -0
- accelerator_pyloco-0.4.1/pyLOCO/measure/automatic.py +122 -0
- accelerator_pyloco-0.4.1/pyLOCO/measure/dispersion.py +24 -0
- accelerator_pyloco-0.4.1/pyLOCO/measure/full_session.py +242 -0
- accelerator_pyloco-0.4.1/pyLOCO/measure/main_window.py +5332 -0
- accelerator_pyloco-0.4.1/pyLOCO/measure/petra_readonly_smoke.py +34 -0
- accelerator_pyloco-0.4.1/pyLOCO/measure/project.py +143 -0
- accelerator_pyloco-0.4.1/pyLOCO/measure/reference_model.py +212 -0
- accelerator_pyloco-0.4.1/pyLOCO/measured_machine/__init__.py +14 -0
- accelerator_pyloco-0.4.1/pyLOCO/measured_machine/diagnostics.py +576 -0
- accelerator_pyloco-0.4.1/pyLOCO/measured_machine/workflow.py +695 -0
- accelerator_pyloco-0.4.1/pyLOCO/parallel.py +47 -0
- accelerator_pyloco-0.4.1/pyLOCO/pyloco.py +7299 -0
- accelerator_pyloco-0.4.1/pyLOCO/reference_model.py +12 -0
- accelerator_pyloco-0.4.1/pyLOCO/response_matrix.py +1805 -0
- accelerator_pyloco-0.4.1/pyLOCO/set_parameters.py +385 -0
- accelerator_pyloco-0.4.1/pyLOCO/user_config.py +343 -0
- accelerator_pyloco-0.4.1/pySC_interface.py +7 -0
- accelerator_pyloco-0.4.1/pyproject.toml +41 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Colleague-supplied PETRA III baseline files are retained byte-for-byte.
|
|
2
|
+
Examples/pySC_profiles/petra_iii/official/** -whitespace
|
|
3
|
+
Examples/pySC_profiles/petra_iii/realistic_errors/data/BPM_names.txt -whitespace
|
|
4
|
+
Examples/pySC_profiles/petra_iii/realistic_errors/data/HCM_names.txt -whitespace
|
|
5
|
+
Examples/pySC_profiles/petra_iii/realistic_errors/data/VCM_names.txt -whitespace
|
|
6
|
+
Examples/pySC_profiles/petra_iii/realistic_errors/data/p3_BPM_mapping.yaml -whitespace
|
|
7
|
+
Examples/pySC_profiles/petra_iii/realistic_errors/data/p3_HCM_mapping.yaml -whitespace
|
|
8
|
+
Examples/pySC_profiles/petra_iii/realistic_errors/data/p3_VCM_mapping.yaml -whitespace
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# macOS
|
|
2
|
+
.DS_Store
|
|
3
|
+
|
|
4
|
+
# Python
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.pyc
|
|
7
|
+
|
|
8
|
+
# Jupyter
|
|
9
|
+
.ipynb_checkpoints/
|
|
10
|
+
|
|
11
|
+
# IDEs
|
|
12
|
+
.idea/
|
|
13
|
+
.vscode/
|
|
14
|
+
|
|
15
|
+
# PETRA III generated output
|
|
16
|
+
Examples/PETRAIII/output/
|
|
17
|
+
|
|
18
|
+
# Generated debug output
|
|
19
|
+
**/output/debug/
|
|
20
|
+
|
|
21
|
+
**/output/jacobians/
|
|
22
|
+
|
|
23
|
+
# Local files
|
|
24
|
+
measurements/
|
|
25
|
+
correction-transactions/
|
|
26
|
+
output/
|
|
27
|
+
results/
|
|
28
|
+
!pyLOCO/gui/results/
|
|
29
|
+
!pyLOCO/gui/results/*.py
|
|
30
|
+
|
|
31
|
+
# Local configuration files
|
|
32
|
+
PETRAIII_example.pyloco.json
|
|
33
|
+
p3_loco_test-loco-config.json
|
|
34
|
+
p3_loco_test.pyloco.json
|
|
35
|
+
|
|
36
|
+
# Generated example outputs
|
|
37
|
+
Examples/**/output/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
## Project Origins and Authors
|
|
2
|
+
|
|
3
|
+
The development of **pyLOCO** began in 2021 as part of a PhD research project at **Deutsches Elektronen-Synchrotron (DESY)**, Hamburg, Germany. The initial implementation was developed and evaluated through simulation studies for FCC-ee and PETRA IV.
|
|
4
|
+
|
|
5
|
+
Following the PhD research, development continued to extend the framework towards operational applications. The framework was subsequently tested and validated on real accelerators and further developed under the name **pyLOCO**.
|
|
6
|
+
|
|
7
|
+
### Authors
|
|
8
|
+
|
|
9
|
+
- **Elaf Musa** — [elaf.musa@desy.de](mailto:elaf.musa@desy.de)
|
|
10
|
+
- **Ilya Agapov** — [ilya.agapov@desy.de](mailto:ilya.agapov@desy.de)
|
|
11
|
+
- **Konstantinos Paraschou** — [konstantinos.paraschou@desy.de](mailto:konstantinos.paraschou@desy.de)
|
|
12
|
+
|
|
13
|
+
**Affiliation:** Deutsches Elektronen-Synchrotron (DESY), Hamburg, Germany.
|