cgse 2024.7.0__py3-none-any.whl → 2025.0.2__py3-none-any.whl

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 (664) hide show
  1. README.md +27 -0
  2. bump.py +85 -0
  3. cgse-2025.0.2.dist-info/METADATA +38 -0
  4. cgse-2025.0.2.dist-info/RECORD +5 -0
  5. {cgse-2024.7.0.dist-info → cgse-2025.0.2.dist-info}/WHEEL +1 -2
  6. cgse-2024.7.0.dist-info/COPYING +0 -674
  7. cgse-2024.7.0.dist-info/COPYING.LESSER +0 -165
  8. cgse-2024.7.0.dist-info/METADATA +0 -144
  9. cgse-2024.7.0.dist-info/RECORD +0 -660
  10. cgse-2024.7.0.dist-info/entry_points.txt +0 -75
  11. cgse-2024.7.0.dist-info/top_level.txt +0 -2
  12. egse/__init__.py +0 -12
  13. egse/__main__.py +0 -32
  14. egse/aeu/aeu.py +0 -5238
  15. egse/aeu/aeu_awg.yaml +0 -265
  16. egse/aeu/aeu_crio.yaml +0 -273
  17. egse/aeu/aeu_cs.py +0 -627
  18. egse/aeu/aeu_devif.py +0 -321
  19. egse/aeu/aeu_main_ui.py +0 -903
  20. egse/aeu/aeu_metrics.py +0 -131
  21. egse/aeu/aeu_protocol.py +0 -463
  22. egse/aeu/aeu_psu.yaml +0 -204
  23. egse/aeu/aeu_ui.py +0 -873
  24. egse/aeu/arbdata/FccdRead.arb +0 -2
  25. egse/aeu/arbdata/FccdRead_min_points.arb +0 -2
  26. egse/aeu/arbdata/HeaterSync_FccdRead.arb +0 -2
  27. egse/aeu/arbdata/HeaterSync_ccdRead25.arb +0 -2
  28. egse/aeu/arbdata/HeaterSync_ccdRead31_25.arb +0 -2
  29. egse/aeu/arbdata/HeaterSync_ccdRead37_50.arb +0 -2
  30. egse/aeu/arbdata/HeaterSync_ccdRead43_75.arb +0 -2
  31. egse/aeu/arbdata/HeaterSync_ccdRead50.arb +0 -2
  32. egse/aeu/arbdata/Heater_FccdRead_min_points.arb +0 -2
  33. egse/aeu/arbdata/ccdRead25.arb +0 -2
  34. egse/aeu/arbdata/ccdRead25_150ms.arb +0 -2
  35. egse/aeu/arbdata/ccdRead31_25.arb +0 -2
  36. egse/aeu/arbdata/ccdRead31_25_150ms.arb +0 -2
  37. egse/aeu/arbdata/ccdRead37_50.arb +0 -2
  38. egse/aeu/arbdata/ccdRead37_50_150ms.arb +0 -2
  39. egse/aeu/arbdata/ccdRead43_75.arb +0 -2
  40. egse/aeu/arbdata/ccdRead43_75_150ms.arb +0 -2
  41. egse/aeu/arbdata/ccdRead50.arb +0 -2
  42. egse/aeu/arbdata/ccdRead50_150ms.arb +0 -2
  43. egse/alert/__init__.py +0 -1049
  44. egse/alert/alertman.yaml +0 -37
  45. egse/alert/alertman_cs.py +0 -233
  46. egse/alert/alertman_ui.py +0 -600
  47. egse/alert/gsm/beaglebone.py +0 -138
  48. egse/alert/gsm/beaglebone.yaml +0 -51
  49. egse/alert/gsm/beaglebone_cs.py +0 -108
  50. egse/alert/gsm/beaglebone_devif.py +0 -122
  51. egse/alert/gsm/beaglebone_protocol.py +0 -46
  52. egse/bits.py +0 -318
  53. egse/camera.py +0 -44
  54. egse/collimator/__init__.py +0 -0
  55. egse/collimator/fcul/__init__.py +0 -0
  56. egse/collimator/fcul/ogse.py +0 -1077
  57. egse/collimator/fcul/ogse.yaml +0 -14
  58. egse/collimator/fcul/ogse_cs.py +0 -154
  59. egse/collimator/fcul/ogse_devif.py +0 -358
  60. egse/collimator/fcul/ogse_protocol.py +0 -132
  61. egse/collimator/fcul/ogse_sim.py +0 -431
  62. egse/collimator/fcul/ogse_ui.py +0 -1108
  63. egse/command.py +0 -699
  64. egse/config.py +0 -410
  65. egse/confman/__init__.py +0 -1058
  66. egse/confman/confman.yaml +0 -70
  67. egse/confman/confman_cs.py +0 -240
  68. egse/confman/confman_ui.py +0 -381
  69. egse/confman/setup_ui.py +0 -565
  70. egse/control.py +0 -632
  71. egse/coordinates/__init__.py +0 -534
  72. egse/coordinates/avoidance.py +0 -100
  73. egse/coordinates/cslmodel.py +0 -127
  74. egse/coordinates/laser_tracker_to_dict.py +0 -122
  75. egse/coordinates/point.py +0 -707
  76. egse/coordinates/pyplot.py +0 -194
  77. egse/coordinates/referenceFrame.py +0 -1279
  78. egse/coordinates/refmodel.py +0 -737
  79. egse/coordinates/rotationMatrix.py +0 -85
  80. egse/coordinates/transform3d_addon.py +0 -419
  81. egse/csl/__init__.py +0 -50
  82. egse/csl/commanding.py +0 -78
  83. egse/csl/icons/hexapod-connected-selected.svg +0 -30
  84. egse/csl/icons/hexapod-connected.svg +0 -30
  85. egse/csl/icons/hexapod-homing-selected.svg +0 -68
  86. egse/csl/icons/hexapod-homing.svg +0 -68
  87. egse/csl/icons/hexapod-retract-selected.svg +0 -56
  88. egse/csl/icons/hexapod-retract.svg +0 -51
  89. egse/csl/icons/hexapod-zero-selected.svg +0 -56
  90. egse/csl/icons/hexapod-zero.svg +0 -56
  91. egse/csl/icons/logo-puna.svg +0 -92
  92. egse/csl/icons/stop.svg +0 -1
  93. egse/csl/initialisation.py +0 -102
  94. egse/csl/mech_pos_settings.yaml +0 -18
  95. egse/das.py +0 -1240
  96. egse/das.yaml +0 -7
  97. egse/data/conf/SETUP_CSL_00000_170620_150000.yaml +0 -5
  98. egse/data/conf/SETUP_CSL_00001_170620_151010.yaml +0 -69
  99. egse/data/conf/SETUP_CSL_00002_170620_151020.yaml +0 -69
  100. egse/data/conf/SETUP_CSL_00003_170620_151030.yaml +0 -69
  101. egse/data/conf/SETUP_CSL_00004_170620_151040.yaml +0 -69
  102. egse/data/conf/SETUP_CSL_00005_170620_151050.yaml +0 -69
  103. egse/data/conf/SETUP_CSL_00006_170620_151060.yaml +0 -69
  104. egse/data/conf/SETUP_CSL_00007_170620_151070.yaml +0 -69
  105. egse/data/conf/SETUP_CSL_00008_170620_151080.yaml +0 -75
  106. egse/data/conf/SETUP_CSL_00010_210308_083016.yaml +0 -138
  107. egse/data/conf/SETUP_INTA_00000_170620_150000.yaml +0 -4
  108. egse/data/conf/SETUP_SRON_00000_170620_150000.yaml +0 -4
  109. egse/decorators.py +0 -514
  110. egse/device.py +0 -269
  111. egse/dpu/__init__.py +0 -2698
  112. egse/dpu/ccd_ui.py +0 -514
  113. egse/dpu/dpu.py +0 -783
  114. egse/dpu/dpu.yaml +0 -153
  115. egse/dpu/dpu_cs.py +0 -272
  116. egse/dpu/dpu_ui.py +0 -671
  117. egse/dpu/fitsgen.py +0 -2096
  118. egse/dpu/fitsgen_ui.py +0 -399
  119. egse/dpu/hdf5_model.py +0 -332
  120. egse/dpu/hdf5_ui.py +0 -277
  121. egse/dpu/hdf5_viewer.py +0 -506
  122. egse/dpu/hk_ui.py +0 -468
  123. egse/dpu_commands.py +0 -81
  124. egse/dsi/__init__.py +0 -33
  125. egse/dsi/_libesl.py +0 -232
  126. egse/dsi/constants.py +0 -296
  127. egse/dsi/esl.py +0 -630
  128. egse/dsi/rmap.py +0 -444
  129. egse/dsi/rmapci.py +0 -39
  130. egse/dsi/spw.py +0 -335
  131. egse/dsi/spw_state.py +0 -29
  132. egse/dummy.py +0 -318
  133. egse/dyndummy.py +0 -179
  134. egse/env.py +0 -278
  135. egse/exceptions.py +0 -88
  136. egse/fdir/__init__.py +0 -26
  137. egse/fdir/fdir_manager.py +0 -85
  138. egse/fdir/fdir_manager.yaml +0 -37
  139. egse/fdir/fdir_manager_controller.py +0 -136
  140. egse/fdir/fdir_manager_cs.py +0 -164
  141. egse/fdir/fdir_manager_interface.py +0 -15
  142. egse/fdir/fdir_remote.py +0 -73
  143. egse/fdir/fdir_remote.yaml +0 -30
  144. egse/fdir/fdir_remote_controller.py +0 -30
  145. egse/fdir/fdir_remote_cs.py +0 -94
  146. egse/fdir/fdir_remote_interface.py +0 -9
  147. egse/fdir/fdir_remote_popup.py +0 -26
  148. egse/fee/__init__.py +0 -106
  149. egse/fee/f_fee_register.yaml +0 -43
  150. egse/fee/feesim.py +0 -914
  151. egse/fee/n_fee_hk.py +0 -768
  152. egse/fee/nfee.py +0 -188
  153. egse/filterwheel/__init__.py +0 -4
  154. egse/filterwheel/eksma/__init__.py +0 -49
  155. egse/filterwheel/eksma/fw8smc4.py +0 -657
  156. egse/filterwheel/eksma/fw8smc4.yaml +0 -121
  157. egse/filterwheel/eksma/fw8smc4_cs.py +0 -144
  158. egse/filterwheel/eksma/fw8smc4_devif.py +0 -473
  159. egse/filterwheel/eksma/fw8smc4_protocol.py +0 -82
  160. egse/filterwheel/eksma/fw8smc4_ui.py +0 -940
  161. egse/filterwheel/eksma/fw8smc5.py +0 -115
  162. egse/filterwheel/eksma/fw8smc5.yaml +0 -105
  163. egse/filterwheel/eksma/fw8smc5_controller.py +0 -307
  164. egse/filterwheel/eksma/fw8smc5_cs.py +0 -141
  165. egse/filterwheel/eksma/fw8smc5_interface.py +0 -65
  166. egse/filterwheel/eksma/fw8smc5_simulator.py +0 -29
  167. egse/filterwheel/eksma/fw8smc5_ui.py +0 -1065
  168. egse/filterwheel/eksma/testpythonfw.py +0 -215
  169. egse/fov/__init__.py +0 -65
  170. egse/fov/fov_hk.py +0 -710
  171. egse/fov/fov_ui.py +0 -859
  172. egse/fov/fov_ui_controller.py +0 -140
  173. egse/fov/fov_ui_model.py +0 -200
  174. egse/fov/fov_ui_view.py +0 -345
  175. egse/gimbal/__init__.py +0 -32
  176. egse/gimbal/symetrie/__init__.py +0 -26
  177. egse/gimbal/symetrie/alpha.py +0 -586
  178. egse/gimbal/symetrie/generic_gimbal_ui.py +0 -1521
  179. egse/gimbal/symetrie/gimbal.py +0 -877
  180. egse/gimbal/symetrie/gimbal.yaml +0 -168
  181. egse/gimbal/symetrie/gimbal_cs.py +0 -183
  182. egse/gimbal/symetrie/gimbal_protocol.py +0 -138
  183. egse/gimbal/symetrie/gimbal_ui.py +0 -361
  184. egse/gimbal/symetrie/pmac.py +0 -1006
  185. egse/gimbal/symetrie/pmac_regex.py +0 -83
  186. egse/graph.py +0 -132
  187. egse/gui/__init__.py +0 -47
  188. egse/gui/buttons.py +0 -378
  189. egse/gui/focalplane.py +0 -1285
  190. egse/gui/formatter.py +0 -10
  191. egse/gui/led.py +0 -162
  192. egse/gui/limitswitch.py +0 -143
  193. egse/gui/mechanisms.py +0 -587
  194. egse/gui/states.py +0 -148
  195. egse/gui/stripchart.py +0 -729
  196. egse/gui/styles.qss +0 -48
  197. egse/gui/switch.py +0 -112
  198. egse/h5.py +0 -274
  199. egse/help/__init__.py +0 -0
  200. egse/help/help_ui.py +0 -126
  201. egse/hexapod/__init__.py +0 -32
  202. egse/hexapod/symetrie/__init__.py +0 -137
  203. egse/hexapod/symetrie/alpha.py +0 -874
  204. egse/hexapod/symetrie/dynalpha.py +0 -1387
  205. egse/hexapod/symetrie/hexapod_ui.py +0 -1516
  206. egse/hexapod/symetrie/pmac.py +0 -1010
  207. egse/hexapod/symetrie/pmac_regex.py +0 -83
  208. egse/hexapod/symetrie/puna.py +0 -1167
  209. egse/hexapod/symetrie/puna.yaml +0 -193
  210. egse/hexapod/symetrie/puna_cs.py +0 -195
  211. egse/hexapod/symetrie/puna_protocol.py +0 -134
  212. egse/hexapod/symetrie/puna_ui.py +0 -433
  213. egse/hexapod/symetrie/punaplus.py +0 -107
  214. egse/hexapod/symetrie/zonda.py +0 -872
  215. egse/hexapod/symetrie/zonda.yaml +0 -337
  216. egse/hexapod/symetrie/zonda_cs.py +0 -172
  217. egse/hexapod/symetrie/zonda_devif.py +0 -414
  218. egse/hexapod/symetrie/zonda_protocol.py +0 -123
  219. egse/hexapod/symetrie/zonda_ui.py +0 -449
  220. egse/hk.py +0 -791
  221. egse/icons/aeu-cs-start.svg +0 -117
  222. egse/icons/aeu-cs-stop.svg +0 -118
  223. egse/icons/aeu-cs.svg +0 -107
  224. egse/icons/aeu_cs-started.svg +0 -112
  225. egse/icons/aeu_cs-stopped.svg +0 -112
  226. egse/icons/aeu_cs.svg +0 -55
  227. egse/icons/alert.svg +0 -1
  228. egse/icons/arrow-double-left.png +0 -0
  229. egse/icons/arrow-double-right.png +0 -0
  230. egse/icons/arrow-up.svg +0 -11
  231. egse/icons/backward.svg +0 -1
  232. egse/icons/busy.svg +0 -1
  233. egse/icons/cleaning.svg +0 -115
  234. egse/icons/color-scheme.svg +0 -1
  235. egse/icons/cs-connected-alert.svg +0 -91
  236. egse/icons/cs-connected-disabled.svg +0 -43
  237. egse/icons/cs-connected.svg +0 -89
  238. egse/icons/cs-not-connected.svg +0 -44
  239. egse/icons/double-left-arrow.svg +0 -1
  240. egse/icons/double-right-arrow.svg +0 -1
  241. egse/icons/erase-disabled.svg +0 -19
  242. egse/icons/erase.svg +0 -59
  243. egse/icons/fitsgen-start.svg +0 -47
  244. egse/icons/fitsgen-stop.svg +0 -48
  245. egse/icons/fitsgen.svg +0 -1
  246. egse/icons/forward.svg +0 -1
  247. egse/icons/fov-hk-start.svg +0 -33
  248. egse/icons/fov-hk-stop.svg +0 -37
  249. egse/icons/fov-hk.svg +0 -1
  250. egse/icons/front-desk.svg +0 -1
  251. egse/icons/home-actioned.svg +0 -15
  252. egse/icons/home-disabled.svg +0 -15
  253. egse/icons/home.svg +0 -13
  254. egse/icons/info.svg +0 -1
  255. egse/icons/invalid.png +0 -0
  256. egse/icons/led-green.svg +0 -20
  257. egse/icons/led-grey.svg +0 -20
  258. egse/icons/led-orange.svg +0 -20
  259. egse/icons/led-red.svg +0 -20
  260. egse/icons/led-square-green.svg +0 -134
  261. egse/icons/led-square-grey.svg +0 -134
  262. egse/icons/led-square-orange.svg +0 -134
  263. egse/icons/led-square-red.svg +0 -134
  264. egse/icons/limit-switch-all-green.svg +0 -115
  265. egse/icons/limit-switch-all-red.svg +0 -117
  266. egse/icons/limit-switch-el+.svg +0 -116
  267. egse/icons/limit-switch-el-.svg +0 -117
  268. egse/icons/location-marker.svg +0 -1
  269. egse/icons/logo-dpu.svg +0 -48
  270. egse/icons/logo-gimbal.svg +0 -112
  271. egse/icons/logo-huber.svg +0 -23
  272. egse/icons/logo-ogse.svg +0 -31
  273. egse/icons/logo-puna.svg +0 -92
  274. egse/icons/logo-tcs.svg +0 -29
  275. egse/icons/logo-zonda.svg +0 -66
  276. egse/icons/maximize.svg +0 -1
  277. egse/icons/meter.svg +0 -1
  278. egse/icons/more.svg +0 -45
  279. egse/icons/n-fee-hk-start.svg +0 -24
  280. egse/icons/n-fee-hk-stop.svg +0 -25
  281. egse/icons/n-fee-hk.svg +0 -83
  282. egse/icons/observing-off.svg +0 -46
  283. egse/icons/observing-on.svg +0 -46
  284. egse/icons/open-document-hdf5.png +0 -0
  285. egse/icons/open-document-hdf5.svg +0 -21
  286. egse/icons/ops-mode.svg +0 -1
  287. egse/icons/play-green.svg +0 -17
  288. egse/icons/plugged-disabled.svg +0 -27
  289. egse/icons/plugged.svg +0 -21
  290. egse/icons/pm_ui.svg +0 -1
  291. egse/icons/power-button-green.svg +0 -27
  292. egse/icons/power-button-red.svg +0 -27
  293. egse/icons/power-button.svg +0 -27
  294. egse/icons/radar.svg +0 -1
  295. egse/icons/radioactive.svg +0 -2
  296. egse/icons/reload.svg +0 -1
  297. egse/icons/remote-control-off.svg +0 -28
  298. egse/icons/remote-control-on.svg +0 -28
  299. egse/icons/repeat-blue.svg +0 -15
  300. egse/icons/repeat.svg +0 -1
  301. egse/icons/settings.svg +0 -1
  302. egse/icons/shrink.svg +0 -1
  303. egse/icons/shutter.svg +0 -1
  304. egse/icons/sign-off.svg +0 -1
  305. egse/icons/sign-on.svg +0 -1
  306. egse/icons/sim-mode.svg +0 -1
  307. egse/icons/small-buttons-go.svg +0 -20
  308. egse/icons/small-buttons-minus.svg +0 -51
  309. egse/icons/small-buttons-plus.svg +0 -51
  310. egse/icons/sponge.svg +0 -220
  311. egse/icons/start-button-disabled.svg +0 -84
  312. egse/icons/start-button.svg +0 -50
  313. egse/icons/stop-button-disabled.svg +0 -84
  314. egse/icons/stop-button.svg +0 -50
  315. egse/icons/stop-red.svg +0 -17
  316. egse/icons/stop.svg +0 -1
  317. egse/icons/switch-disabled-square.svg +0 -87
  318. egse/icons/switch-disabled.svg +0 -15
  319. egse/icons/switch-off-square.svg +0 -87
  320. egse/icons/switch-off.svg +0 -72
  321. egse/icons/switch-on-square.svg +0 -87
  322. egse/icons/switch-on.svg +0 -61
  323. egse/icons/temperature-control.svg +0 -44
  324. egse/icons/th_ui_logo.svg +0 -1
  325. egse/icons/unplugged.svg +0 -23
  326. egse/icons/unvalid.png +0 -0
  327. egse/icons/user-interface.svg +0 -1
  328. egse/icons/vacuum.svg +0 -1
  329. egse/icons/valid.png +0 -0
  330. egse/icons/zoom-to-pixel-dark.svg +0 -64
  331. egse/icons/zoom-to-pixel-white.svg +0 -36
  332. egse/images/big-rotation-stage.png +0 -0
  333. egse/images/connected-100.png +0 -0
  334. egse/images/cross.svg +0 -6
  335. egse/images/disconnected-100.png +0 -0
  336. egse/images/gui-icon.png +0 -0
  337. egse/images/home.svg +0 -6
  338. egse/images/info-icon.png +0 -0
  339. egse/images/led-black.svg +0 -89
  340. egse/images/led-green.svg +0 -85
  341. egse/images/led-orange.svg +0 -85
  342. egse/images/led-red.svg +0 -85
  343. egse/images/load-icon.png +0 -0
  344. egse/images/load-setup.png +0 -0
  345. egse/images/load.png +0 -0
  346. egse/images/pause.png +0 -0
  347. egse/images/play-button.svg +0 -8
  348. egse/images/play.png +0 -0
  349. egse/images/process-status.png +0 -0
  350. egse/images/restart.png +0 -0
  351. egse/images/search.png +0 -0
  352. egse/images/sma.png +0 -0
  353. egse/images/start.png +0 -0
  354. egse/images/stop-button.svg +0 -8
  355. egse/images/stop.png +0 -0
  356. egse/images/switch-off.svg +0 -48
  357. egse/images/switch-on.svg +0 -48
  358. egse/images/undo.png +0 -0
  359. egse/images/update-button.svg +0 -11
  360. egse/imageviewer/exposureselection.py +0 -475
  361. egse/imageviewer/imageviewer.py +0 -198
  362. egse/imageviewer/matchfocalplane.py +0 -179
  363. egse/imageviewer/subfieldposition.py +0 -133
  364. egse/lampcontrol/__init__.py +0 -4
  365. egse/lampcontrol/beaglebone/beaglebone.py +0 -178
  366. egse/lampcontrol/beaglebone/beaglebone.yaml +0 -62
  367. egse/lampcontrol/beaglebone/beaglebone_cs.py +0 -106
  368. egse/lampcontrol/beaglebone/beaglebone_devif.py +0 -150
  369. egse/lampcontrol/beaglebone/beaglebone_protocol.py +0 -73
  370. egse/lampcontrol/energetiq/__init__.py +0 -22
  371. egse/lampcontrol/energetiq/eq99.yaml +0 -98
  372. egse/lampcontrol/energetiq/lampEQ99.py +0 -283
  373. egse/lampcontrol/energetiq/lampEQ99_cs.py +0 -128
  374. egse/lampcontrol/energetiq/lampEQ99_devif.py +0 -158
  375. egse/lampcontrol/energetiq/lampEQ99_encode_decode_errors.py +0 -73
  376. egse/lampcontrol/energetiq/lampEQ99_protocol.py +0 -71
  377. egse/lampcontrol/energetiq/lampEQ99_ui.py +0 -465
  378. egse/lib/CentOS-7/EtherSpaceLink_v34_86.dylib +0 -0
  379. egse/lib/CentOS-8/ESL-RMAP_v34_86.dylib +0 -0
  380. egse/lib/CentOS-8/EtherSpaceLink_v34_86.dylib +0 -0
  381. egse/lib/Debian/ESL-RMAP_v34_86.dylib +0 -0
  382. egse/lib/Debian/EtherSpaceLink_v34_86.dylib +0 -0
  383. egse/lib/Debian/libetherspacelink_v35_21.dylib +0 -0
  384. egse/lib/Linux/ESL-RMAP_v34_86.dylib +0 -0
  385. egse/lib/Linux/EtherSpaceLink_v34_86.dylib +0 -0
  386. egse/lib/Ubuntu-20/ESL-RMAP_v34_86.dylib +0 -0
  387. egse/lib/Ubuntu-20/EtherSpaceLink_v34_86.dylib +0 -0
  388. egse/lib/gssw/python3-gssw_2.2.3+31f63c9f-1_all.deb +0 -0
  389. egse/lib/ximc/__pycache__/pyximc.cpython-38 2.pyc +0 -0
  390. egse/lib/ximc/__pycache__/pyximc.cpython-38.pyc +0 -0
  391. egse/lib/ximc/libximc.framework/Frameworks/libbindy.dylib +0 -0
  392. egse/lib/ximc/libximc.framework/Frameworks/libxiwrapper.dylib +0 -0
  393. egse/lib/ximc/libximc.framework/Headers/ximc.h +0 -5510
  394. egse/lib/ximc/libximc.framework/Resources/Info.plist +0 -42
  395. egse/lib/ximc/libximc.framework/Resources/keyfile.sqlite +0 -0
  396. egse/lib/ximc/libximc.framework/libbindy.so +0 -0
  397. egse/lib/ximc/libximc.framework/libximc +0 -0
  398. egse/lib/ximc/libximc.framework/libximc.so +0 -0
  399. egse/lib/ximc/libximc.framework/libximc.so.7.0.0 +0 -0
  400. egse/lib/ximc/libximc.framework/libxiwrapper.so +0 -0
  401. egse/lib/ximc/pyximc.py +0 -922
  402. egse/listener.py +0 -179
  403. egse/logger/__init__.py +0 -243
  404. egse/logger/log_cs.py +0 -321
  405. egse/metrics.py +0 -102
  406. egse/mixin.py +0 -464
  407. egse/monitoring.py +0 -95
  408. egse/ni/alarms/__init__.py +0 -26
  409. egse/ni/alarms/cdaq9375.py +0 -300
  410. egse/ni/alarms/cdaq9375.yaml +0 -89
  411. egse/ni/alarms/cdaq9375_cs.py +0 -130
  412. egse/ni/alarms/cdaq9375_devif.py +0 -183
  413. egse/ni/alarms/cdaq9375_protocol.py +0 -48
  414. egse/obs_inspection.py +0 -165
  415. egse/observer.py +0 -41
  416. egse/obsid.py +0 -163
  417. egse/powermeter/__init__.py +0 -0
  418. egse/powermeter/ni/__init__.py +0 -38
  419. egse/powermeter/ni/cdaq9184.py +0 -224
  420. egse/powermeter/ni/cdaq9184.yaml +0 -73
  421. egse/powermeter/ni/cdaq9184_cs.py +0 -130
  422. egse/powermeter/ni/cdaq9184_devif.py +0 -201
  423. egse/powermeter/ni/cdaq9184_protocol.py +0 -48
  424. egse/powermeter/ni/cdaq9184_ui.py +0 -544
  425. egse/powermeter/thorlabs/__init__.py +0 -25
  426. egse/powermeter/thorlabs/pm100a.py +0 -380
  427. egse/powermeter/thorlabs/pm100a.yaml +0 -132
  428. egse/powermeter/thorlabs/pm100a_cs.py +0 -136
  429. egse/powermeter/thorlabs/pm100a_devif.py +0 -127
  430. egse/powermeter/thorlabs/pm100a_protocol.py +0 -80
  431. egse/powermeter/thorlabs/pm100a_ui.py +0 -725
  432. egse/process.py +0 -451
  433. egse/procman/__init__.py +0 -834
  434. egse/procman/cannot_start_process_popup.py +0 -43
  435. egse/procman/procman.yaml +0 -49
  436. egse/procman/procman_cs.py +0 -201
  437. egse/procman/procman_ui.py +0 -2081
  438. egse/protocol.py +0 -605
  439. egse/proxy.py +0 -531
  440. egse/randomwalk.py +0 -140
  441. egse/reg.py +0 -585
  442. egse/reload.py +0 -122
  443. egse/reprocess.py +0 -693
  444. egse/resource.py +0 -333
  445. egse/rmap.py +0 -406
  446. egse/rst.py +0 -135
  447. egse/search.py +0 -182
  448. egse/serialdevice.py +0 -190
  449. egse/services.py +0 -247
  450. egse/services.yaml +0 -68
  451. egse/settings.py +0 -379
  452. egse/settings.yaml +0 -980
  453. egse/setup.py +0 -1181
  454. egse/shutter/__init__.py +0 -0
  455. egse/shutter/thorlabs/__init__.py +0 -19
  456. egse/shutter/thorlabs/ksc101.py +0 -205
  457. egse/shutter/thorlabs/ksc101.yaml +0 -105
  458. egse/shutter/thorlabs/ksc101_cs.py +0 -136
  459. egse/shutter/thorlabs/ksc101_devif.py +0 -201
  460. egse/shutter/thorlabs/ksc101_protocol.py +0 -71
  461. egse/shutter/thorlabs/ksc101_ui.py +0 -548
  462. egse/shutter/thorlabs/sc10.py +0 -82
  463. egse/shutter/thorlabs/sc10.yaml +0 -52
  464. egse/shutter/thorlabs/sc10_controller.py +0 -81
  465. egse/shutter/thorlabs/sc10_cs.py +0 -108
  466. egse/shutter/thorlabs/sc10_interface.py +0 -25
  467. egse/shutter/thorlabs/sc10_simulator.py +0 -30
  468. egse/simulator.py +0 -41
  469. egse/slack.py +0 -61
  470. egse/socketdevice.py +0 -218
  471. egse/sockets.py +0 -218
  472. egse/spw.py +0 -1401
  473. egse/stages/__init__.py +0 -12
  474. egse/stages/aerotech/ensemble.py +0 -245
  475. egse/stages/aerotech/ensemble.yaml +0 -205
  476. egse/stages/aerotech/ensemble_controller.py +0 -275
  477. egse/stages/aerotech/ensemble_cs.py +0 -110
  478. egse/stages/aerotech/ensemble_interface.py +0 -132
  479. egse/stages/aerotech/ensemble_parameters.py +0 -433
  480. egse/stages/aerotech/ensemble_simulator.py +0 -27
  481. egse/stages/aerotech/mgse_sim.py +0 -188
  482. egse/stages/arun/smd3.py +0 -110
  483. egse/stages/arun/smd3.yaml +0 -68
  484. egse/stages/arun/smd3_controller.py +0 -470
  485. egse/stages/arun/smd3_cs.py +0 -112
  486. egse/stages/arun/smd3_interface.py +0 -53
  487. egse/stages/arun/smd3_simulator.py +0 -27
  488. egse/stages/arun/smd3_stop.py +0 -16
  489. egse/stages/huber/__init__.py +0 -49
  490. egse/stages/huber/smc9300.py +0 -920
  491. egse/stages/huber/smc9300.yaml +0 -63
  492. egse/stages/huber/smc9300_cs.py +0 -178
  493. egse/stages/huber/smc9300_devif.py +0 -345
  494. egse/stages/huber/smc9300_protocol.py +0 -113
  495. egse/stages/huber/smc9300_sim.py +0 -547
  496. egse/stages/huber/smc9300_ui.py +0 -973
  497. egse/state.py +0 -173
  498. egse/statemachine.py +0 -274
  499. egse/storage/__init__.py +0 -1067
  500. egse/storage/persistence.py +0 -2295
  501. egse/storage/storage.yaml +0 -79
  502. egse/storage/storage_cs.py +0 -231
  503. egse/styles/dark.qss +0 -343
  504. egse/styles/default.qss +0 -48
  505. egse/synoptics/__init__.py +0 -417
  506. egse/synoptics/syn.yaml +0 -9
  507. egse/synoptics/syn_cs.py +0 -195
  508. egse/system.py +0 -1611
  509. egse/tcs/__init__.py +0 -14
  510. egse/tcs/tcs.py +0 -879
  511. egse/tcs/tcs.yaml +0 -14
  512. egse/tcs/tcs_cs.py +0 -202
  513. egse/tcs/tcs_devif.py +0 -292
  514. egse/tcs/tcs_protocol.py +0 -180
  515. egse/tcs/tcs_sim.py +0 -177
  516. egse/tcs/tcs_ui.py +0 -543
  517. egse/tdms.py +0 -171
  518. egse/tempcontrol/__init__.py +0 -23
  519. egse/tempcontrol/agilent/agilent34970.py +0 -109
  520. egse/tempcontrol/agilent/agilent34970.yaml +0 -44
  521. egse/tempcontrol/agilent/agilent34970_cs.py +0 -114
  522. egse/tempcontrol/agilent/agilent34970_devif.py +0 -182
  523. egse/tempcontrol/agilent/agilent34970_protocol.py +0 -96
  524. egse/tempcontrol/agilent/agilent34972.py +0 -111
  525. egse/tempcontrol/agilent/agilent34972.yaml +0 -44
  526. egse/tempcontrol/agilent/agilent34972_cs.py +0 -115
  527. egse/tempcontrol/agilent/agilent34972_devif.py +0 -189
  528. egse/tempcontrol/agilent/agilent34972_protocol.py +0 -98
  529. egse/tempcontrol/beaglebone/beaglebone.py +0 -341
  530. egse/tempcontrol/beaglebone/beaglebone.yaml +0 -110
  531. egse/tempcontrol/beaglebone/beaglebone_cs.py +0 -117
  532. egse/tempcontrol/beaglebone/beaglebone_protocol.py +0 -134
  533. egse/tempcontrol/beaglebone/beaglebone_ui.py +0 -674
  534. egse/tempcontrol/digalox/digalox.py +0 -115
  535. egse/tempcontrol/digalox/digalox.yaml +0 -36
  536. egse/tempcontrol/digalox/digalox_cs.py +0 -108
  537. egse/tempcontrol/digalox/digalox_protocol.py +0 -56
  538. egse/tempcontrol/keithley/__init__.py +0 -33
  539. egse/tempcontrol/keithley/daq6510.py +0 -662
  540. egse/tempcontrol/keithley/daq6510.yaml +0 -105
  541. egse/tempcontrol/keithley/daq6510_cs.py +0 -163
  542. egse/tempcontrol/keithley/daq6510_devif.py +0 -343
  543. egse/tempcontrol/keithley/daq6510_protocol.py +0 -79
  544. egse/tempcontrol/keithley/daq6510_sim.py +0 -186
  545. egse/tempcontrol/lakeshore/__init__.py +0 -33
  546. egse/tempcontrol/lakeshore/lsci.py +0 -361
  547. egse/tempcontrol/lakeshore/lsci.yaml +0 -162
  548. egse/tempcontrol/lakeshore/lsci_cs.py +0 -174
  549. egse/tempcontrol/lakeshore/lsci_devif.py +0 -292
  550. egse/tempcontrol/lakeshore/lsci_protocol.py +0 -76
  551. egse/tempcontrol/lakeshore/lsci_ui.py +0 -387
  552. egse/tempcontrol/ni/__init__.py +0 -0
  553. egse/tempcontrol/spid/spid.py +0 -109
  554. egse/tempcontrol/spid/spid.yaml +0 -81
  555. egse/tempcontrol/spid/spid_controller.py +0 -279
  556. egse/tempcontrol/spid/spid_cs.py +0 -136
  557. egse/tempcontrol/spid/spid_protocol.py +0 -107
  558. egse/tempcontrol/spid/spid_ui.py +0 -723
  559. egse/tempcontrol/srs/__init__.py +0 -22
  560. egse/tempcontrol/srs/ptc10.py +0 -867
  561. egse/tempcontrol/srs/ptc10.yaml +0 -227
  562. egse/tempcontrol/srs/ptc10_cs.py +0 -128
  563. egse/tempcontrol/srs/ptc10_devif.py +0 -116
  564. egse/tempcontrol/srs/ptc10_protocol.py +0 -39
  565. egse/tempcontrol/srs/ptc10_ui.py +0 -906
  566. egse/ups/apc/apc.py +0 -236
  567. egse/ups/apc/apc.yaml +0 -45
  568. egse/ups/apc/apc_cs.py +0 -101
  569. egse/ups/apc/apc_protocol.py +0 -125
  570. egse/user.yaml +0 -7
  571. egse/vacuum/beaglebone/beaglebone.py +0 -149
  572. egse/vacuum/beaglebone/beaglebone.yaml +0 -44
  573. egse/vacuum/beaglebone/beaglebone_cs.py +0 -108
  574. egse/vacuum/beaglebone/beaglebone_devif.py +0 -159
  575. egse/vacuum/beaglebone/beaglebone_protocol.py +0 -192
  576. egse/vacuum/beaglebone/beaglebone_ui.py +0 -638
  577. egse/vacuum/instrutech/igm402.py +0 -91
  578. egse/vacuum/instrutech/igm402.yaml +0 -90
  579. egse/vacuum/instrutech/igm402_controller.py +0 -124
  580. egse/vacuum/instrutech/igm402_cs.py +0 -108
  581. egse/vacuum/instrutech/igm402_interface.py +0 -49
  582. egse/vacuum/instrutech/igm402_simulator.py +0 -36
  583. egse/vacuum/keller/kellerBus.py +0 -256
  584. egse/vacuum/keller/leo3.py +0 -100
  585. egse/vacuum/keller/leo3.yaml +0 -38
  586. egse/vacuum/keller/leo3_controller.py +0 -81
  587. egse/vacuum/keller/leo3_cs.py +0 -101
  588. egse/vacuum/keller/leo3_interface.py +0 -33
  589. egse/vacuum/mks/evision.py +0 -86
  590. egse/vacuum/mks/evision.yaml +0 -75
  591. egse/vacuum/mks/evision_cs.py +0 -101
  592. egse/vacuum/mks/evision_devif.py +0 -313
  593. egse/vacuum/mks/evision_interface.py +0 -60
  594. egse/vacuum/mks/evision_simulator.py +0 -24
  595. egse/vacuum/mks/evision_ui.py +0 -701
  596. egse/vacuum/pfeiffer/acp40.py +0 -87
  597. egse/vacuum/pfeiffer/acp40.yaml +0 -60
  598. egse/vacuum/pfeiffer/acp40_controller.py +0 -117
  599. egse/vacuum/pfeiffer/acp40_cs.py +0 -109
  600. egse/vacuum/pfeiffer/acp40_interface.py +0 -40
  601. egse/vacuum/pfeiffer/acp40_simulator.py +0 -37
  602. egse/vacuum/pfeiffer/tc400.py +0 -87
  603. egse/vacuum/pfeiffer/tc400.yaml +0 -83
  604. egse/vacuum/pfeiffer/tc400_controller.py +0 -136
  605. egse/vacuum/pfeiffer/tc400_cs.py +0 -109
  606. egse/vacuum/pfeiffer/tc400_interface.py +0 -70
  607. egse/vacuum/pfeiffer/tc400_simulator.py +0 -35
  608. egse/vacuum/pfeiffer/tpg261.py +0 -80
  609. egse/vacuum/pfeiffer/tpg261.yaml +0 -66
  610. egse/vacuum/pfeiffer/tpg261_controller.py +0 -150
  611. egse/vacuum/pfeiffer/tpg261_cs.py +0 -109
  612. egse/vacuum/pfeiffer/tpg261_interface.py +0 -59
  613. egse/vacuum/pfeiffer/tpg261_simulator.py +0 -23
  614. egse/version.py +0 -174
  615. egse/visitedpositions.py +0 -398
  616. egse/windowing.py +0 -213
  617. egse/zmq/__init__.py +0 -28
  618. egse/zmq/spw.py +0 -160
  619. egse/zmq_ser.py +0 -41
  620. scripts/alerts/cold.yaml +0 -278
  621. scripts/alerts/example_alerts.yaml +0 -54
  622. scripts/alerts/transition.yaml +0 -14
  623. scripts/alerts/warm.yaml +0 -49
  624. scripts/analyse_n_fee_hk_data.py +0 -52
  625. scripts/check_hdf5_files.py +0 -192
  626. scripts/check_register_sync.py +0 -47
  627. scripts/check_tcs_calib_coef.py +0 -90
  628. scripts/correct_ccd_cold_temperature_cal.py +0 -157
  629. scripts/create_hdf5_report.py +0 -293
  630. scripts/csl_model.py +0 -420
  631. scripts/csl_restore_setup.py +0 -229
  632. scripts/export-grafana-dashboards.py +0 -49
  633. scripts/fdir/cs_recovery/fdir_cs_recovery.py +0 -54
  634. scripts/fdir/fdir_table.yaml +0 -70
  635. scripts/fdir/fdir_test_recovery.py +0 -10
  636. scripts/fdir/hw_recovery/fdir_agilent_hw_recovery.py +0 -73
  637. scripts/fdir/limit_recovery/fdir_agilent_limit.py +0 -61
  638. scripts/fdir/limit_recovery/fdir_bb_heater_limit.py +0 -59
  639. scripts/fdir/limit_recovery/fdir_ensemble_limit.py +0 -33
  640. scripts/fdir/limit_recovery/fdir_pressure_limit_recovery.py +0 -71
  641. scripts/fix_csv.py +0 -80
  642. scripts/ias/correct_ccd_temp_cal_elfique.py +0 -43
  643. scripts/ias/correct_ccd_temp_cal_floreffe.py +0 -43
  644. scripts/ias/correct_trp_swap_achel.py +0 -199
  645. scripts/inta/correct_ccd_temp_cal_duvel.py +0 -43
  646. scripts/inta/correct_ccd_temp_cal_gueuze.py +0 -43
  647. scripts/n_fee_supply_voltage_calculation.py +0 -92
  648. scripts/playground.py +0 -30
  649. scripts/print_hdf5_hk_data.py +0 -68
  650. scripts/print_register_map.py +0 -43
  651. scripts/remove_lines_between_matches.py +0 -188
  652. scripts/sron/commanding/control_heaters.py +0 -44
  653. scripts/sron/commanding/pumpdown.py +0 -46
  654. scripts/sron/commanding/set_pid_setpoint.py +0 -19
  655. scripts/sron/commanding/shutdown_bbb_heaters.py +0 -10
  656. scripts/sron/commanding/shutdown_pumps.py +0 -33
  657. scripts/sron/correct_mgse_coordinates_brigand_chimay.py +0 -272
  658. scripts/sron/correct_trp_swap_brigand.py +0 -204
  659. scripts/sron/gimbal_conversions.py +0 -75
  660. scripts/sron/tm_gen/tm_gen_agilent.py +0 -37
  661. scripts/sron/tm_gen/tm_gen_heaters.py +0 -4
  662. scripts/sron/tm_gen/tm_gen_spid.py +0 -13
  663. scripts/update_operational_cgse.py +0 -268
  664. scripts/update_operational_cgse_old.py +0 -273
egse/aeu/aeu_main_ui.py DELETED
@@ -1,903 +0,0 @@
1
- import argparse
2
- import logging
3
-
4
- import sys
5
- from PyQt5.QtWidgets import QMainWindow, QApplication, QLabel, QFrame, QHBoxLayout, QVBoxLayout, QGroupBox, QGridLayout, \
6
- QLineEdit, QSpinBox, QPushButton
7
-
8
- from egse.aeu.aeu import CRIOProxy, CRIOController, CRIOSimulator, PSUProxy, PSUController, \
9
- AWGController, PSUSimulator
10
- from egse.gui.led import Led
11
- from egse.observer import Observer, Observable
12
- from egse.settings import Settings
13
-
14
- MODULE_LOGGER = logging.getLogger(__name__)
15
-
16
- NUM_POWERLINES = 6
17
-
18
- # Leds that always have to be shown (no matter which camera has been selected)
19
-
20
-
21
- RELEVANT_COMMON_KEYS = {
22
- "Standby": "Stand-by", "Selftest": "Self-test", "FC_TVAC": "Functional check & TVAC", "Alignment": "Alignment",
23
- "N-CAM": "N-CAM", "F-CAM": "F-CAM", "V_CCD": "V_CCD", "V_CLK": "V_CLK", "V_AN1": "V_AN1", "V_AN2": "V_AN2",
24
- "V_AN3": "V_AN3", "V_DIG": "V_DIG", "S_voltage_oor": "Secondary voltage generation out-of-range",
25
- "S_current_oor": "Secondary current generation out-of-range", "Sync_gf": "Synchronisation generator failure",
26
- "Clk_TCS_50MHz_nom": "Clk_TCS_50MHz_nom", "Clk_TCS_50MHz_red": "Clk_TCS_50MHz_red",
27
- "Clk_heater_nom": "Clk_heater_nom", "Clk_heater_red": "Clk_heater_red", "TestPort": "Test port"
28
- }
29
-
30
- # Leds that have to be shown only if the N-CAM has been selected
31
-
32
- RELEVANT_N_CAM_KEYS = ["Clk_N_50MHz", "Clk_N_ccdread"]
33
-
34
- # Leds that have to be shown only if the F-CAM has been selected
35
-
36
- RELEVANT_F_CAM_KEYS = ["Clk_F_50MHz_nom", "Clk_F_50MHz_red", "Clk_F_ccdread_nom", "Clk_F_ccdread_red"]
37
-
38
- PSU_NAMES = {1: "CCD", 2: "CLK", 3: "AN1", 4: "AN2", 5: "AN3", 6: "DIG"}
39
-
40
- # class MonitoringWorker(QObject):
41
- # """ Worker for monitoring the led status of the AEU cRIO. """
42
- #
43
- # # The worker will send a signal with the AEU cRIO led status
44
- #
45
- # common_led_status_signal = pyqtSignal(dict)
46
- # hide_clk_signal = pyqtSignal()
47
- # n_cam_clk_led_status_signal = pyqtSignal(dict)
48
- # f_cam_clk_led_status_signal = pyqtSignal(dict)
49
- #
50
- # def __init__(self):
51
- # """ Initialisation of a monitoring worker.
52
- #
53
- # This worker keeps on eye on the monitoring port of the AEU cRIO. When a changed in (relevant) monitoring
54
- # information occurs, a signal will be emitted. These signals will be used to update the GUI.
55
- # """
56
- #
57
- # super(MonitoringWorker, self).__init__()
58
- #
59
- # self.active = False
60
- # self.just_reconnected = True
61
- #
62
- # self.monitoring_socket = None
63
- # self.is_socket_connected = True
64
- # self.monitoring_timeout = 0.5 # [s]
65
- #
66
- # self.connect_socket()
67
- #
68
- # # Keep track of the previous led status, so we only have to send a signal when the led status has changed
69
- #
70
- # self.previous_common_led_status = {}
71
- # self.previous_n_cam_clk_led_status = {}
72
- # self.previous_f_cam_clk_led_status = {}
73
- #
74
- # def connect_socket(self):
75
- # """ Create a socket and connect to the monitoring port.
76
- # """
77
- #
78
- # try:
79
- #
80
- # transport = CTRL_SETTINGS.PROTOCOL
81
- # hostname = CTRL_SETTINGS.HOSTNAME
82
- # # commanding_port = CTRL_SETTINGS.CRIO["COMMANDING_PORT"]
83
- # monitoring_port = CTRL_SETTINGS.CRIO["MONITORING_PORT"]
84
- #
85
- # monitoring_address = connect_address(transport, hostname, monitoring_port)
86
- #
87
- # self.monitoring_socket = zmq.Context().socket(zmq.SUB)
88
- # self.monitoring_socket.connect(monitoring_address)
89
- # self.monitoring_socket.setsockopt_string(zmq.SUBSCRIBE, "")
90
- #
91
- # self.monitoring_timeout = 0.5 # [s]
92
- #
93
- # # Address of the commanding port
94
- # # This is needed when checking whether or not the CS is active
95
- # # TODO
96
- #
97
- # self.is_socket_connected = True
98
- #
99
- # except AttributeError:
100
- #
101
- # self.is_socket_connected = False
102
- #
103
- # def stop(self):
104
- #
105
- # """ Stop the monitoring worker.
106
- #
107
- # The monitoring socket is disconnected from the monitoring port and is then closed immediately.
108
- # """
109
- #
110
- # self.monitoring_socket.close()
111
- # self.is_socket_connected = False
112
- #
113
- # self.active = False
114
- #
115
- # def start_process(self):
116
- # """ Start updating the led status of the AEU cRIO."""
117
- #
118
- # self.run()
119
- #
120
- # @pyqtSlot()
121
- # def run(self):
122
- # """ Keep on checking whether the led status of the AEU cRIO has changed.
123
- #
124
- # If the led status of the AEU cRIO has changed, update it in the GUI.
125
- # """
126
- #
127
- # self.active = True
128
- #
129
- # while self.is_socket_connected and self.active:
130
- #
131
- # try:
132
- #
133
- # socket_list, _, _ = zmq.select([self.monitoring_socket], [], [], timeout=self.monitoring_timeout)
134
- #
135
- # # Monitoring information was received (before timeout)
136
- #
137
- # if self.monitoring_socket in socket_list:
138
- #
139
- # pickle_string = self.monitoring_socket.recv()
140
- # monitoring_info = pickle.loads(pickle_string)
141
- #
142
- # # Select the monitoring information that is relevant for the GUI
143
- #
144
- # common_led_status = {key: monitoring_info[key] for key in RELEVANT_COMMON_KEYS.keys()}
145
- #
146
- # n_cam_clk_led_status = {}
147
- # f_cam_clk_led_status = {}
148
- #
149
- # n_cam_powered = common_led_status["N-CAM"]
150
- # f_cam_powered = common_led_status["F-CAM"]
151
- #
152
- # if n_cam_powered:
153
- # n_cam_clk_led_status = {key: monitoring_info[key] for key in RELEVANT_N_CAM_KEYS}
154
- # elif f_cam_powered:
155
- # f_cam_clk_led_status = {key: monitoring_info[key] for key in RELEVANT_F_CAM_KEYS}
156
- #
157
- # diff_common = DeepDiff(common_led_status, self.previous_common_led_status)
158
- # diff_n_cam_clk = DeepDiff(n_cam_clk_led_status, self.previous_n_cam_clk_led_status)
159
- # diff_f_cam_clk = DeepDiff(f_cam_clk_led_status, self.previous_f_cam_clk_led_status)
160
- #
161
- # error_detected = monitoring_info["S_voltage_oor"] or monitoring_info["S_current_oor"] \
162
- # or monitoring_info["Sync_gf"]
163
- #
164
- # # Change in common led status
165
- #
166
- # if self.just_reconnected:
167
- #
168
- # if error_detected or not (n_cam_powered or f_cam_powered):
169
- #
170
- # self.hide_clk_signal.emit()
171
- #
172
- # if len(diff_common) != 0 or self.just_reconnected:
173
- #
174
- # self.previous_common_led_status = common_led_status
175
- # self.common_led_status_signal.emit(common_led_status)
176
- #
177
- # if error_detected:
178
- #
179
- # self.hide_clk_signal.emit()
180
- #
181
- # # Change in N-CAM led status
182
- #
183
- # elif len(diff_n_cam_clk) != 0:
184
- #
185
- # self.previous_n_cam_clk_led_status = n_cam_clk_led_status
186
- # self.n_cam_clk_led_status_signal.emit(n_cam_clk_led_status)
187
- #
188
- # # Change in F-CAM led status
189
- #
190
- # elif len(diff_f_cam_clk) != 0:
191
- #
192
- # self.previous_f_cam_clk_led_status = f_cam_clk_led_status
193
- # self.f_cam_clk_led_status_signal.emit(f_cam_clk_led_status)
194
- #
195
- # self.just_reconnected = False
196
- #
197
- # except ZMQError:
198
- #
199
- # pass
200
-
201
-
202
- class PSUWidget(QGroupBox):
203
-
204
- def __init__(self, psu_index: int, name: str):
205
-
206
- super().__init__(f"PSU{psu_index}")
207
-
208
- # label = QLabel(name)
209
- # self.led = Led(self)
210
- # self.on_color = on_color
211
- # self.set_led_color(False)
212
- #
213
- values_layout = QGridLayout()
214
-
215
- self.measured_voltage = QLineEdit()
216
- self.measured_current = QLineEdit()
217
-
218
- self.voltage_setpoint = QSpinBox()
219
- self.current_setpoint = QSpinBox()
220
-
221
- self.power_button = QPushButton("Power on/off")
222
- self.power_led = Led()
223
- # self.power_led.setText("Powered on")
224
-
225
- index = 0
226
-
227
- values_layout.addWidget(QLabel(f"Measured V_{name} [V]"), index, 0)
228
- values_layout.addWidget(QLabel(f"Measured I_{name} [V]"), index, 1)
229
- index += 1
230
-
231
- values_layout.addWidget(self.measured_voltage, index, 0)
232
- values_layout.addWidget(self.measured_current, index, 1)
233
- index += 1
234
-
235
- values_layout.addWidget(QLabel(f"V_{name} setpoint [V]"), index, 0)
236
- values_layout.addWidget(QLabel(f"I_{name} setpoint"), index, 1)
237
- index += 1
238
-
239
- values_layout.addWidget(self.voltage_setpoint, index, 0)
240
- values_layout.addWidget(self.current_setpoint, index, 1)
241
- index += 1
242
-
243
- values_layout.addWidget(self.power_button, index, 0)
244
- values_layout.addWidget(self.power_led, index, 1)
245
-
246
- power_layout = QHBoxLayout()
247
-
248
- power_layout.addWidget(self.power_button)
249
- power_layout.addWidget(self.power_led)
250
-
251
- layout = QVBoxLayout()
252
- layout.addLayout(values_layout)
253
- layout.addLayout(power_layout)
254
-
255
- # layout.addWidget(label)
256
- # layout.addWidget(self.led)
257
-
258
- self.setLayout(layout)
259
- #
260
- # def set_on_color(self, on_color: Indic):
261
- # """ Set the colour that the led should have when turned on.
262
- #
263
- # Args:
264
- # - on_color: Colour the led should have when turned on.
265
- # """
266
- #
267
- # self.on_color = on_color
268
- #
269
- # def set_led_color(self, status: IntSwitch):
270
- # """ Change the colour of the led.
271
- #
272
- # Args:
273
- # - status: Indicates whether the led should be turned on.
274
- # """
275
- #
276
- # if status:
277
- #
278
- # self.led.set_color(self.on_color)
279
- #
280
- # else:
281
- #
282
- # self.led.set_color(Indic.BLACK)
283
- #
284
- #
285
- class AEUUIView(QMainWindow, Observable):
286
-
287
- def __init__(self):
288
- """ Initialisation of the AEU GUI.
289
-
290
- In the current implementation, the GUI reflects the front panel of the UI, showing the following status
291
- information:
292
-
293
- - EGSE (operating) mode;
294
- - camera selection: N-CAM vs. F-CAM;
295
- - output status of the the six power lines (V_CCD, V_CLK, V_AN1, V_AN2, V_AN3, and V_DIG);
296
- - error detection: secondary voltage/current out-of-range & synchronisation generator failure;
297
- - Clk signals selection: Clk_N_50MHz, Clk_N_ccdread, Clk_F_50MHz_nom, Clk_F_50MHz_red, Clk_F_ccdread_nom,
298
- Clk_F_ccdread_red, Clk_TCS_50MHz_nom, Clk_TCS_50MHz_red, Clk_heater_nom, Clk_heater_red, and test port.
299
- """
300
-
301
- super().__init__()
302
-
303
- self.setGeometry(300, 300, 300, 200)
304
- self.setWindowTitle("Ancillary Electrical Units (AEU)")
305
-
306
- self.psu_widgets = {}
307
-
308
- # self.widgets = {}
309
- # self.connected_pix, self.disconnected_pix, self.connection_status_icon = None, None, None
310
- #
311
- # self.monitoring_thread = QThread(self)
312
- # self.monitoring_worker = MonitoringWorker()
313
- # self.monitoring_worker.moveToThread(self.monitoring_thread)
314
- #
315
- # self.monitoring_worker.common_led_status_signal.connect(self.on_common_led_status_changed_signal)
316
- # self.monitoring_worker.hide_clk_signal.connect(self.on_hide_clk_signal)
317
- # self.monitoring_worker.n_cam_clk_led_status_signal.connect(self.on_n_cam_clk_led_status_changed_signal)
318
- # self.monitoring_worker.f_cam_clk_led_status_signal.connect(self.on_f_cam_clk_led_status_changed_signal)
319
- #
320
- # self.monitoring_thread.started.connect(self.monitoring_worker.start_process)
321
- # self.monitoring_thread.start()
322
- #
323
- # self.reconnect_action = None
324
- # self.n_cam_clk_signals_selection_widget = QGroupBox("", self)
325
- # self.f_cam_clk_signals_selection_widget = QGroupBox("", self)
326
- # self.tcs_clk_signals_selection_widget = QGroupBox("", self)
327
- #
328
- self.init_ui()
329
-
330
- def init_ui(self):
331
-
332
- app_frame = QFrame()
333
- app_frame.setObjectName("AppFrame")
334
-
335
- layout = QGridLayout()
336
-
337
- for psu_index in range(1, NUM_POWERLINES + 1):
338
-
339
- psu_widget = PSUWidget(psu_index, PSU_NAMES[psu_index])
340
- self.psu_widgets[psu_index] = psu_widget
341
-
342
- row = (psu_index - 1) // 3
343
- column = (psu_index - 1) % 3
344
-
345
- layout.addWidget(psu_widget, row, column)
346
- #
347
- # self.create_toolbar()
348
- #
349
- # # self.widgets = {}
350
- #
351
- # for key, label in RELEVANT_COMMON_KEYS.items():
352
- #
353
- # self.widgets[key] = LedWidget(label)
354
- # self.widgets[key].setFixedHeight(50)
355
- #
356
- # for key in RELEVANT_N_CAM_KEYS + RELEVANT_F_CAM_KEYS:
357
- #
358
- # self.widgets[key] = LedWidget(key)
359
- # self.widgets[key].setFixedHeight(50)
360
- #
361
- # self.widgets["S_voltage_oor"].set_on_color(Indic.RED)
362
- # self.widgets["S_current_oor"].set_on_color(Indic.RED)
363
- # self.widgets["Sync_gf"].set_on_color(Indic.RED)
364
- #
365
- # layout = QHBoxLayout()
366
- #
367
- # # EGSE mode
368
- #
369
- # egse_mode_layout = QVBoxLayout()
370
- # egse_mode_widget = QGroupBox("EGSE mode", self)
371
- #
372
- # egse_mode_layout.addWidget(self.widgets["Standby"])
373
- # egse_mode_layout.addWidget(self.widgets["Selftest"])
374
- # egse_mode_layout.addWidget(self.widgets["FC_TVAC"])
375
- # egse_mode_layout.addWidget(self.widgets["Alignment"])
376
- #
377
- # egse_mode_widget.setLayout(egse_mode_layout)
378
- #
379
- # # Camera selection
380
- #
381
- # cam_selection_layout = QVBoxLayout()
382
- # cam_selection_widget = QGroupBox("Camera selection", self)
383
- #
384
- # cam_selection_layout.addWidget(self.widgets["N-CAM"])
385
- # cam_selection_layout.addWidget(self.widgets["F-CAM"])
386
- #
387
- # cam_selection_widget.setLayout(cam_selection_layout)
388
- #
389
- # # Power lines
390
- #
391
- # power_lines_layout = QGridLayout()
392
- # power_lines_widget = QGroupBox("Power lines", self)
393
- #
394
- # power_lines_layout.addWidget(self.widgets["V_CCD"], 0, 0)
395
- # power_lines_layout.addWidget(self.widgets["V_CLK"], 1, 0)
396
- # power_lines_layout.addWidget(self.widgets["V_AN1"], 2, 0)
397
- # power_lines_layout.addWidget(self.widgets["V_AN2"], 0, 1)
398
- # power_lines_layout.addWidget(self.widgets["V_AN3"], 1, 1)
399
- # power_lines_layout.addWidget(self.widgets["V_DIG"], 2, 1)
400
- #
401
- # power_lines_widget.setLayout(power_lines_layout)
402
- #
403
- # # Error detection
404
- #
405
- # error_detection_layout = QVBoxLayout()
406
- # error_detection_widget = QGroupBox("Error detection", self)
407
- #
408
- # error_detection_layout.addWidget(self.widgets["S_voltage_oor"])
409
- # error_detection_layout.addWidget(self.widgets["S_current_oor"])
410
- # error_detection_layout.addWidget(self.widgets["Sync_gf"])
411
- #
412
- # error_detection_widget.setLayout(error_detection_layout)
413
- #
414
- # # Clk signals selection
415
- #
416
- # clk_signals_selection_layout = QVBoxLayout()
417
- # clk_signals_selection_widget = QGroupBox("Clk signals selection", self)
418
- #
419
- # n_cam_clk_signals_selection_layout = QHBoxLayout()
420
- # f_cam_clk_signals_selection_layout = QGridLayout()
421
- # tcs_clk_signals_selection_layout = QGridLayout()
422
- #
423
- # n_cam_clk_signals_selection_layout.addWidget(self.widgets["Clk_N_50MHz"])
424
- # n_cam_clk_signals_selection_layout.addWidget(self.widgets["Clk_N_ccdread"])
425
- #
426
- # f_cam_clk_signals_selection_layout.addWidget(self.widgets["Clk_F_50MHz_nom"], 0, 0)
427
- # f_cam_clk_signals_selection_layout.addWidget(self.widgets["Clk_F_50MHz_red"], 0, 1)
428
- # f_cam_clk_signals_selection_layout.addWidget(self.widgets["Clk_F_ccdread_nom"], 1, 0)
429
- # f_cam_clk_signals_selection_layout.addWidget(self.widgets["Clk_F_ccdread_red"], 1, 1)
430
- #
431
- # tcs_clk_signals_selection_layout.addWidget(self.widgets["Clk_TCS_50MHz_nom"], 0, 0)
432
- # tcs_clk_signals_selection_layout.addWidget(self.widgets["Clk_TCS_50MHz_red"], 0, 1)
433
- # tcs_clk_signals_selection_layout.addWidget(self.widgets["Clk_heater_nom"], 1, 0)
434
- # tcs_clk_signals_selection_layout.addWidget(self.widgets["Clk_heater_red"], 1, 1)
435
- #
436
- # self.n_cam_clk_signals_selection_widget.setLayout(n_cam_clk_signals_selection_layout)
437
- # self.f_cam_clk_signals_selection_widget.setLayout(f_cam_clk_signals_selection_layout)
438
- # self.tcs_clk_signals_selection_widget.setLayout(tcs_clk_signals_selection_layout)
439
- #
440
- # clk_signals_selection_layout.addWidget(self.n_cam_clk_signals_selection_widget)
441
- # clk_signals_selection_layout.addWidget(self.f_cam_clk_signals_selection_widget)
442
- # clk_signals_selection_layout.addWidget(self.tcs_clk_signals_selection_widget)
443
- #
444
- # self.n_cam_clk_signals_selection_widget.setVisible(False)
445
- # self.f_cam_clk_signals_selection_widget.setVisible(False)
446
- # self.tcs_clk_signals_selection_widget.setVisible(False)
447
- #
448
- # clk_signals_selection_layout.addWidget(self.widgets["TestPort"])
449
- #
450
- # clk_signals_selection_widget.setLayout(clk_signals_selection_layout)
451
- #
452
- # egse_mode_layout.addStretch(True)
453
- # cam_selection_layout.addStretch(True)
454
- # power_lines_layout.setRowStretch(3, 2)
455
- # error_detection_layout.addStretch(True)
456
- # clk_signals_selection_layout.addStretch(True)
457
- #
458
- # layout.addWidget(egse_mode_widget)
459
- # layout.addWidget(cam_selection_widget)
460
- # layout.addWidget(power_lines_widget)
461
- # layout.addWidget(error_detection_widget)
462
- # layout.addWidget(clk_signals_selection_widget)
463
-
464
- app_frame.setLayout(layout)
465
-
466
- self.setCentralWidget(app_frame)
467
- #
468
- # def create_toolbar(self):
469
- # """ Create toolbar showing the state of the connection with the device."""
470
- #
471
- # connected_pix = QPixmap(str(find_file("connected-100.png", in_dir="images")))
472
- # disconnected_pix = QPixmap(str(find_file("disconnected-100.png", in_dir="images")))
473
- # reconnect_icon = QIcon()
474
- # reconnect_icon.addPixmap(connected_pix, QIcon.Normal, QIcon.On)
475
- # reconnect_icon.addPixmap(disconnected_pix, QIcon.Normal, QIcon.Off)
476
- #
477
- # self.reconnect_action = QAction(reconnect_icon, "Reconnect", self)
478
- # self.reconnect_action.setToolTip("Reconnect")
479
- # self.reconnect_action.setCheckable(True)
480
- # self.reconnect_action.triggered.connect(self.on_click)
481
- #
482
- # toolbar = self.addToolBar("MainToolbar")
483
- # toolbar.addAction(self.reconnect_action)
484
- #
485
- # def on_common_led_status_changed_signal(self, monitoring_info: dict):
486
- # """ Update the status of the leds in case the common led status has changed.
487
- #
488
- # Args:
489
- # - monitoring_info: Monitoring information regarding the EGSE mode, camera selection, power lines, and
490
- # error detection.
491
- # """
492
- #
493
- # if not self.reconnect_action.isChecked():
494
- #
495
- # return
496
- #
497
- # for name, status in monitoring_info.items():
498
- #
499
- # self.widgets[name].set_led_color(status)
500
- #
501
- # # self.set_connection_state(True)
502
- #
503
- # def on_hide_clk_signal(self):
504
- # """ Hide the information about the clocks."""
505
- #
506
- # if not self.reconnect_action.isChecked():
507
- #
508
- # return
509
- #
510
- # self.n_cam_clk_signals_selection_widget.setVisible(False)
511
- # self.f_cam_clk_signals_selection_widget.setVisible(False)
512
- # self.tcs_clk_signals_selection_widget.setVisible(False)
513
- #
514
- # # self.set_connection_state(True)
515
- #
516
- # def on_n_cam_clk_led_status_changed_signal(self, monitoring_info: dict):
517
- # """ Update the status of the leds in case the N-CAM Clk led status has changed.
518
- #
519
- # When the given monitoring information is empty, the status of the N-CAM Clk is hidden.
520
- #
521
- # Args:
522
- # - monitoring_info: Monitoring information regarding the N-CAM Clk signal selection. Empty when the N-CAM is
523
- # not selected.
524
- # """
525
- #
526
- # if not self.reconnect_action.isChecked():
527
- #
528
- # return
529
- #
530
- # if len(monitoring_info) == 0:
531
- #
532
- # self.n_cam_clk_signals_selection_widget.setVisible(False)
533
- # self.tcs_clk_signals_selection_widget.setVisible(False)
534
- #
535
- # else:
536
- #
537
- # self.n_cam_clk_signals_selection_widget.setVisible(True)
538
- # self.tcs_clk_signals_selection_widget.setVisible(True)
539
- #
540
- # for name, status in monitoring_info.items():
541
- #
542
- # self.widgets[name].set_led_color(status)
543
- #
544
- # # self.set_connection_state(True)
545
- #
546
- # def on_f_cam_clk_led_status_changed_signal(self, monitoring_info: dict):
547
- # """ Update the status of the leds in case the F-CAM Clk led status has changed.
548
- #
549
- # When the given monitoring information is empty, the status of the F-CAM Clk is hidden
550
- #
551
- # Args:
552
- # - monitoring_info: Monitoring information regarding the F-CAM Clk signal selection. Empty when the F-CAM is
553
- # not selected.
554
- # """
555
- #
556
- # if not self.reconnect_action.isChecked():
557
- #
558
- # return
559
- #
560
- # if len(monitoring_info) == 0:
561
- #
562
- # self.f_cam_clk_signals_selection_widget.setVisible(False)
563
- # self.tcs_clk_signals_selection_widget.setVisible(False)
564
- #
565
- # else:
566
- #
567
- # self.f_cam_clk_signals_selection_widget.setVisible(True)
568
- # self.tcs_clk_signals_selection_widget.setVisible(True)
569
- #
570
- # for name, status in monitoring_info.items():
571
- #
572
- # self.widgets[name].set_led_color(status)
573
- #
574
- # # self.set_connection_state(True)
575
- #
576
- # # def on_connection_lost_signal(self):
577
- # # """ Switch off all leds when the connection to the cRIO is lost."""
578
- # #
579
- # # print("Connection lost")
580
- # #
581
- # # self.disable_leds()
582
- # #
583
- # # # self.set_connection_state(False)
584
- #
585
- # def disable_leds(self):
586
- # """ Disable all the leds."""
587
- #
588
- # for led in self.widgets.values():
589
- #
590
- # led.set_led_color(0)
591
- #
592
- # def on_click(self):
593
- # """ Notify the observers in case of a click."""
594
- # sender = self.sender()
595
- #
596
- # MODULE_LOGGER.log(0, f"sender.text() = {sender.text()}")
597
- # MODULE_LOGGER.log(0, f"sender.isChecked() = {sender.isChecked()}")
598
- #
599
- # self.notifyObservers(sender)
600
- #
601
- # def set_connection_state(self, is_connected):
602
- # """ Update the connection state in the toolbar.
603
- #
604
- # Args:
605
- # - is_connected: Connection status to show.
606
- # """
607
- # if is_connected:
608
- #
609
- # self.reconnect_action.setChecked(True)
610
- # self.monitoring_worker.just_reconnected = True
611
- #
612
- # elif not is_connected:
613
- #
614
- # self.reconnect_action.setChecked(False)
615
- # self.disable_leds()
616
- #
617
- # def closeEvent(self, close_event: QCloseEvent) -> None:
618
- # """ Make sure that all threads are stopped when the GUI is closed.
619
- #
620
- # Args:
621
- # - close_event: Close event received when the GUI is closed.
622
- # """
623
- #
624
- # self.monitoring_worker.stop()
625
- #
626
- # self.monitoring_thread.quit()
627
- # self.monitoring_thread.wait()
628
-
629
-
630
- class AEUUIModel:
631
-
632
- def __init__(self, aeu_type: str):
633
- """ Initialisation of the mode, based on the given AEU cRIO type.
634
-
635
- Allowed values are:
636
-
637
- - proxy: to use the CRIOProxy;
638
- - crio: to use the CRIOController;
639
- - simulator: to use the CRIOSimulator.
640
-
641
- Args:
642
- - aeu_type: Type of AEU cRIO to use as UI model.
643
- """
644
-
645
- self.type = aeu_type
646
-
647
- # Proxy
648
-
649
- if self.type == "proxy":
650
-
651
- self.crio = CRIOProxy()
652
- self.psu = {psu_index: PSUProxy(psu_index) for psu_index in range(1, NUM_POWERLINES + 1)}
653
- # self.awg = {awg_index: AWGProxy(awg_index) for awg_index in range(1, 3)}
654
-
655
- # Controller
656
-
657
- elif self.type == "aeu":
658
-
659
- self.crio = CRIOController()
660
- self.psu = {psu_index: PSUController(psu_index) for psu_index in range(1, NUM_POWERLINES + 1)}
661
- self.awg = {awg_index: AWGController(awg_index) for awg_index in range(1, 3)}
662
-
663
- self.crio.connect()
664
-
665
- for psu in self.psu.values():
666
- psu.connect()
667
-
668
- # for awg in self.awg.values():
669
- # awg.connect()
670
-
671
- # Simulator
672
-
673
- elif self.type == "simulator":
674
-
675
- self.crio = CRIOSimulator()
676
- self.psu = {psu_index: PSUSimulator(psu_index) for psu_index in range(1, NUM_POWERLINES + 1)}
677
- # self.awg = {awg_index: AWGSimulator(awg_index) for awg_index in range(1, 3)}
678
-
679
- else:
680
-
681
- raise ValueError(f"Unknown type of AEU cRIO implementation passed into the model: {type}")
682
-
683
- if self.crio is not None:
684
-
685
- MODULE_LOGGER.debug(f"AEU cRIO Controller initialized as {self.crio.__class__.__name__}")
686
-
687
- # def has_commands(self):
688
- # """ Check whether the AEU cRIO has commands.
689
- #
690
- # Returns: True if the AEU cRIO has commands; False otherwise.
691
- # """
692
- #
693
- # if self.type == "proxy":
694
- #
695
- # return self.crio.has_commands()
696
- #
697
- # return True
698
- #
699
- # def load_commands(self):
700
- # """ Load the commands for the CRIOProxy."""
701
- #
702
- # if self.type == "proxy":
703
- #
704
- # self.crio.load_commands()
705
- #
706
- # def is_simulator(self):
707
- # """ Checks whether the AEU cRIO is a simulator.
708
- #
709
- # Returns: True if the AEU cRIO is a simulator; False otherwise.
710
- # """
711
- #
712
- # return self.crio.is_simulator()
713
- #
714
- # def is_connected(self):
715
- # """ Check whether the AEU cRIO is connected.
716
- #
717
- # Returns: True if the AEU cRIO is connected; False otherwise.
718
- # """
719
- #
720
- # if self.type == "proxy":
721
- #
722
- # return self.crio.is_cs_connected()
723
- #
724
- # else:
725
- #
726
- # return self.crio.is_connected()
727
- #
728
- # def reconnect(self):
729
- # """ Reconnect the AEU cRIO.
730
- #
731
- # Returns: True if the connection could be established; False otherwise.
732
- # """
733
- #
734
- # if self.type == "proxy":
735
- #
736
- # self.crio.reconnect_cs()
737
- #
738
- # return self.crio.is_cs_connected()
739
- #
740
- # else:
741
- #
742
- # self.crio.reconnect()
743
- #
744
- # return self.crio.is_connected()
745
- #
746
- # return False
747
- #
748
- # def disconnect(self):
749
- # """ Disconnect the AEU cRIO Control Server."""
750
- #
751
- # if self.type == "proxy":
752
- #
753
- # self.crio.disconnect_cs()
754
- #
755
-
756
- class AEUUIController(Observer):
757
-
758
- def __init__(self, model: AEUUIModel, view: AEUUIView):
759
-
760
- self.model = model
761
- self.view = view
762
- self.view.addObserver(self)
763
-
764
- # self.states_capture_timer = None
765
- # self.timer_interval = 200
766
- # self.create_timer()
767
-
768
- # if self.model.is_connected():
769
- #
770
- # self.view.set_connection_state(True)
771
- # # self.start_timer()
772
- #
773
- # else:
774
- #
775
- # self.view.set_connection_state(False)
776
- # # self.stop_timer()
777
-
778
- # def create_timer(self):
779
- #
780
- # print("Create timer")
781
- # """Create a Timer that will update the States every second."""
782
- #
783
- # self.states_capture_timer = QTimer()
784
- # # This is only needed when the Timer needs to run in another Thread
785
- # # self.states_capture_timer.moveToThread(self)
786
- # self.states_capture_timer.timeout.connect(self.update_connection_state)
787
- # self.states_capture_timer.setInterval(self.timer_interval)
788
- #
789
- # def start_timer(self):
790
- # print("Start timer")
791
- # self.states_capture_timer.start()
792
- #
793
- # def stop_timer(self):
794
- # print("Stop timer")
795
- # self.states_capture_timer.stop()
796
- #
797
- # def update_connection_state(self):
798
- # """Updates the common view widgets."""
799
- #
800
- # if not self.model.is_connected():
801
- #
802
- # self.view.set_connection_state(False)
803
-
804
- def update(self, changed_object):
805
-
806
- text = changed_object.text()
807
-
808
- if text == "Reconnect":
809
-
810
- if changed_object.isChecked():
811
-
812
- MODULE_LOGGER.debug("Reconnecting the AEU model.")
813
-
814
- if self.model.reconnect():
815
-
816
- self.view.set_connection_state(True)
817
-
818
- if not self.model.has_commands():
819
-
820
- self.model.load_commands()
821
-
822
- else:
823
- self.view.reconnect_action.setChecked(False)
824
- else:
825
-
826
- MODULE_LOGGER.debug("Disconnecting the AEU model.")
827
- self.model.disconnect()
828
- self.view.set_connection_state(False)
829
-
830
- return
831
-
832
- def do(self):
833
-
834
- pass
835
-
836
- def parse_arguments():
837
- """
838
- Prepare the arguments that are specific for this application.
839
- """
840
- parser = argparse.ArgumentParser()
841
- parser.add_argument(
842
- "--type",
843
- dest="type",
844
- action="store",
845
- choices={"proxy", "simulator", "crio"},
846
- help="Specify AEU cRIO implementation you want to connect to.",
847
- default="proxy",
848
- )
849
- parser.add_argument(
850
- "--profile",
851
- default=False,
852
- action="store_true",
853
- help="Enable info logging messages with method profile information.",
854
- )
855
- args = parser.parse_args()
856
- return args
857
-
858
-
859
- def main():
860
- """ Main method to launch the AEU GUI."""
861
-
862
- args = list(sys.argv)
863
- app = QApplication(args)
864
-
865
- # process_status = ProcessStatus()
866
- #
867
- # timer_thread = threading.Thread(target=do_every, args=(10, process_status.update))
868
- # timer_thread.daemon = True
869
- # timer_thread.start()
870
- #
871
- # start_http_server(8541)
872
-
873
- args = parse_arguments()
874
-
875
- if args.profile:
876
- Settings.set_profiling(True)
877
-
878
- if args.type == "proxy":
879
- proxy = CRIOProxy()
880
- # if not proxy.ping():
881
- # description = "Could not connect to Stages Control Server"
882
- # info_text = (
883
- # "The GUI will start, but the connection button will show a disconnected state. "
884
- # "Please check if the Control Server is running and start the server if needed. "
885
- # "Otherwise, check if the correct HOSTNAME for the control server is set in the "
886
- # "Settings.yaml "
887
- # "configuration file."
888
- # )
889
- #
890
- # show_warning_message(description, info_text)
891
-
892
-
893
- view = AEUUIView()
894
- model = AEUUIModel(args.type)
895
- controller = AEUUIController(model, view)
896
-
897
- view.show()
898
- sys.exit(app.exec_())
899
-
900
-
901
- if __name__ == "__main__":
902
-
903
- main()