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.
Files changed (128) hide show
  1. accelerator_pyloco-0.4.1/.gitattributes +8 -0
  2. accelerator_pyloco-0.4.1/.gitignore +37 -0
  3. accelerator_pyloco-0.4.1/AUTHORS.md +13 -0
  4. accelerator_pyloco-0.4.1/GUI_DESIGN.md +969 -0
  5. accelerator_pyloco-0.4.1/LICENSE +201 -0
  6. accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/BPM_names.txt +246 -0
  7. accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/HCM_names_control.txt +184 -0
  8. accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/VCM_names_control.txt +193 -0
  9. accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/getset.py +45 -0
  10. accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/measure_orm_crash_save.py +455 -0
  11. accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/measuring_bpms_noise.py +113 -0
  12. accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/measuring_dispersion.py +263 -0
  13. accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/quads_names_control.txt +193 -0
  14. accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/set_quads_correction.py +100 -0
  15. accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/set_quads_correction_skew.py +100 -0
  16. accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/setup_env.sh +7 -0
  17. accelerator_pyloco-0.4.1/Measurments_scripts_pydoocs/skew_names.txt +16 -0
  18. accelerator_pyloco-0.4.1/PKG-INFO +16 -0
  19. accelerator_pyloco-0.4.1/README.md +98 -0
  20. accelerator_pyloco-0.4.1/p3_interface.py +195 -0
  21. accelerator_pyloco-0.4.1/pyLOCO/__init__.py +0 -0
  22. accelerator_pyloco-0.4.1/pyLOCO/analysis.py +405 -0
  23. accelerator_pyloco-0.4.1/pyLOCO/analytic_orm_with_normal_quad_errors.py +795 -0
  24. accelerator_pyloco-0.4.1/pyLOCO/analytic_orm_with_skew_quad_errors.py +911 -0
  25. accelerator_pyloco-0.4.1/pyLOCO/config.py +241 -0
  26. accelerator_pyloco-0.4.1/pyLOCO/control_system/__init__.py +32 -0
  27. accelerator_pyloco-0.4.1/pyLOCO/control_system/adapters.py +209 -0
  28. accelerator_pyloco-0.4.1/pyLOCO/control_system/backends.py +217 -0
  29. accelerator_pyloco-0.4.1/pyLOCO/control_system/petra.py +147 -0
  30. accelerator_pyloco-0.4.1/pyLOCO/control_system/pyaml_adapter.py +543 -0
  31. accelerator_pyloco-0.4.1/pyLOCO/control_system/pysc_diagnostics.py +62 -0
  32. accelerator_pyloco-0.4.1/pyLOCO/control_system/pysc_profiles.py +78 -0
  33. accelerator_pyloco-0.4.1/pyLOCO/control_system/pysc_server.py +69 -0
  34. accelerator_pyloco-0.4.1/pyLOCO/correct/__init__.py +5 -0
  35. accelerator_pyloco-0.4.1/pyLOCO/correct/app.py +54 -0
  36. accelerator_pyloco-0.4.1/pyLOCO/correct/application.py +48 -0
  37. accelerator_pyloco-0.4.1/pyLOCO/correct/fit_preview.py +123 -0
  38. accelerator_pyloco-0.4.1/pyLOCO/correct/fullfit_transaction.py +695 -0
  39. accelerator_pyloco-0.4.1/pyLOCO/correct/main_window.py +2233 -0
  40. accelerator_pyloco-0.4.1/pyLOCO/correct/model.py +624 -0
  41. accelerator_pyloco-0.4.1/pyLOCO/correct/multi_quadrupole_transaction.py +140 -0
  42. accelerator_pyloco-0.4.1/pyLOCO/correct/petra_readonly.py +161 -0
  43. accelerator_pyloco-0.4.1/pyLOCO/correct/petra_readonly_smoke.py +32 -0
  44. accelerator_pyloco-0.4.1/pyLOCO/correct/pyaml_connection.py +500 -0
  45. accelerator_pyloco-0.4.1/pyLOCO/correct/pyaml_transaction.py +392 -0
  46. accelerator_pyloco-0.4.1/pyLOCO/correct/pyaml_widget.py +804 -0
  47. accelerator_pyloco-0.4.1/pyLOCO/correct/quadrupole_transaction.py +173 -0
  48. accelerator_pyloco-0.4.1/pyLOCO/correct/quadrupole_widget.py +233 -0
  49. accelerator_pyloco-0.4.1/pyLOCO/data_schema/__init__.py +31 -0
  50. accelerator_pyloco-0.4.1/pyLOCO/data_schema/_json.py +35 -0
  51. accelerator_pyloco-0.4.1/pyLOCO/data_schema/correction.py +136 -0
  52. accelerator_pyloco-0.4.1/pyLOCO/data_schema/measurement.py +670 -0
  53. accelerator_pyloco-0.4.1/pyLOCO/data_schema/session.py +100 -0
  54. accelerator_pyloco-0.4.1/pyLOCO/dispersion_convention.py +61 -0
  55. accelerator_pyloco-0.4.1/pyLOCO/gui/__init__.py +28 -0
  56. accelerator_pyloco-0.4.1/pyLOCO/gui/app.py +68 -0
  57. accelerator_pyloco-0.4.1/pyLOCO/gui/appearance.py +49 -0
  58. accelerator_pyloco-0.4.1/pyLOCO/gui/assets/__init__.py +1 -0
  59. accelerator_pyloco-0.4.1/pyLOCO/gui/assets/pyloco_app_icon.png +0 -0
  60. accelerator_pyloco-0.4.1/pyLOCO/gui/assets/pyloco_logo.png +0 -0
  61. accelerator_pyloco-0.4.1/pyLOCO/gui/assets/pyloco_logo_master.png +0 -0
  62. accelerator_pyloco-0.4.1/pyLOCO/gui/assets/pyloco_logo_pre_resize_version.png +0 -0
  63. accelerator_pyloco-0.4.1/pyLOCO/gui/assets/pyloco_ring.png +0 -0
  64. accelerator_pyloco-0.4.1/pyLOCO/gui/backend.py +1564 -0
  65. accelerator_pyloco-0.4.1/pyLOCO/gui/branding.py +155 -0
  66. accelerator_pyloco-0.4.1/pyLOCO/gui/control_search.py +435 -0
  67. accelerator_pyloco-0.4.1/pyLOCO/gui/file_dialogs.py +164 -0
  68. accelerator_pyloco-0.4.1/pyLOCO/gui/fit_workflow.py +582 -0
  69. accelerator_pyloco-0.4.1/pyLOCO/gui/lattice_loader.py +92 -0
  70. accelerator_pyloco-0.4.1/pyLOCO/gui/machine_detection.py +83 -0
  71. accelerator_pyloco-0.4.1/pyLOCO/gui/main_window.py +8529 -0
  72. accelerator_pyloco-0.4.1/pyLOCO/gui/mapping_table.py +79 -0
  73. accelerator_pyloco-0.4.1/pyLOCO/gui/measurement_mapping.py +518 -0
  74. accelerator_pyloco-0.4.1/pyLOCO/gui/measurement_metadata.py +114 -0
  75. accelerator_pyloco-0.4.1/pyLOCO/gui/models/__init__.py +5 -0
  76. accelerator_pyloco-0.4.1/pyLOCO/gui/models/project.py +1577 -0
  77. accelerator_pyloco-0.4.1/pyLOCO/gui/project_info.py +18 -0
  78. accelerator_pyloco-0.4.1/pyLOCO/gui/reference_comparison.py +223 -0
  79. accelerator_pyloco-0.4.1/pyLOCO/gui/results/__init__.py +5 -0
  80. accelerator_pyloco-0.4.1/pyLOCO/gui/results/files_view.py +304 -0
  81. accelerator_pyloco-0.4.1/pyLOCO/gui/results/log_view.py +26 -0
  82. accelerator_pyloco-0.4.1/pyLOCO/gui/results/optics_view.py +265 -0
  83. accelerator_pyloco-0.4.1/pyLOCO/gui/results/orm_view.py +124 -0
  84. accelerator_pyloco-0.4.1/pyLOCO/gui/results/overview_view.py +291 -0
  85. accelerator_pyloco-0.4.1/pyLOCO/gui/results/parameters_view.py +217 -0
  86. accelerator_pyloco-0.4.1/pyLOCO/gui/results/plot_canvas.py +99 -0
  87. accelerator_pyloco-0.4.1/pyLOCO/gui/results/results_loader.py +1830 -0
  88. accelerator_pyloco-0.4.1/pyLOCO/gui/results/results_workspace.py +380 -0
  89. accelerator_pyloco-0.4.1/pyLOCO/gui/results/run_summary_view.py +105 -0
  90. accelerator_pyloco-0.4.1/pyLOCO/gui/results/svd_view.py +126 -0
  91. accelerator_pyloco-0.4.1/pyLOCO/gui/screenshots.py +138 -0
  92. accelerator_pyloco-0.4.1/pyLOCO/gui/suite.py +108 -0
  93. accelerator_pyloco-0.4.1/pyLOCO/gui/themes.py +230 -0
  94. accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/__init__.py +1 -0
  95. accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/orm_comparison.py +268 -0
  96. accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/placeholders.py +95 -0
  97. accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/project_explorer.py +212 -0
  98. accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/reference_comparison.py +192 -0
  99. accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/waiting_games/__init__.py +5 -0
  100. accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/waiting_games/game_2048.py +131 -0
  101. accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/waiting_games/game_dialog.py +67 -0
  102. accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/waiting_games/minesweeper.py +111 -0
  103. accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/waiting_games/sliding_puzzle.py +71 -0
  104. accelerator_pyloco-0.4.1/pyLOCO/gui/widgets/waiting_games/tic_tac_toe.py +86 -0
  105. accelerator_pyloco-0.4.1/pyLOCO/helpers.py +73 -0
  106. accelerator_pyloco-0.4.1/pyLOCO/initial_fit.py +221 -0
  107. accelerator_pyloco-0.4.1/pyLOCO/machine_mapping.py +386 -0
  108. accelerator_pyloco-0.4.1/pyLOCO/measure/__init__.py +9 -0
  109. accelerator_pyloco-0.4.1/pyLOCO/measure/acquisition.py +463 -0
  110. accelerator_pyloco-0.4.1/pyLOCO/measure/app.py +38 -0
  111. accelerator_pyloco-0.4.1/pyLOCO/measure/automatic.py +122 -0
  112. accelerator_pyloco-0.4.1/pyLOCO/measure/dispersion.py +24 -0
  113. accelerator_pyloco-0.4.1/pyLOCO/measure/full_session.py +242 -0
  114. accelerator_pyloco-0.4.1/pyLOCO/measure/main_window.py +5332 -0
  115. accelerator_pyloco-0.4.1/pyLOCO/measure/petra_readonly_smoke.py +34 -0
  116. accelerator_pyloco-0.4.1/pyLOCO/measure/project.py +143 -0
  117. accelerator_pyloco-0.4.1/pyLOCO/measure/reference_model.py +212 -0
  118. accelerator_pyloco-0.4.1/pyLOCO/measured_machine/__init__.py +14 -0
  119. accelerator_pyloco-0.4.1/pyLOCO/measured_machine/diagnostics.py +576 -0
  120. accelerator_pyloco-0.4.1/pyLOCO/measured_machine/workflow.py +695 -0
  121. accelerator_pyloco-0.4.1/pyLOCO/parallel.py +47 -0
  122. accelerator_pyloco-0.4.1/pyLOCO/pyloco.py +7299 -0
  123. accelerator_pyloco-0.4.1/pyLOCO/reference_model.py +12 -0
  124. accelerator_pyloco-0.4.1/pyLOCO/response_matrix.py +1805 -0
  125. accelerator_pyloco-0.4.1/pyLOCO/set_parameters.py +385 -0
  126. accelerator_pyloco-0.4.1/pyLOCO/user_config.py +343 -0
  127. accelerator_pyloco-0.4.1/pySC_interface.py +7 -0
  128. 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.