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.
- README.md +27 -0
- bump.py +85 -0
- cgse-2025.0.2.dist-info/METADATA +38 -0
- cgse-2025.0.2.dist-info/RECORD +5 -0
- {cgse-2024.7.0.dist-info → cgse-2025.0.2.dist-info}/WHEEL +1 -2
- cgse-2024.7.0.dist-info/COPYING +0 -674
- cgse-2024.7.0.dist-info/COPYING.LESSER +0 -165
- cgse-2024.7.0.dist-info/METADATA +0 -144
- cgse-2024.7.0.dist-info/RECORD +0 -660
- cgse-2024.7.0.dist-info/entry_points.txt +0 -75
- cgse-2024.7.0.dist-info/top_level.txt +0 -2
- egse/__init__.py +0 -12
- egse/__main__.py +0 -32
- egse/aeu/aeu.py +0 -5238
- egse/aeu/aeu_awg.yaml +0 -265
- egse/aeu/aeu_crio.yaml +0 -273
- egse/aeu/aeu_cs.py +0 -627
- egse/aeu/aeu_devif.py +0 -321
- egse/aeu/aeu_main_ui.py +0 -903
- egse/aeu/aeu_metrics.py +0 -131
- egse/aeu/aeu_protocol.py +0 -463
- egse/aeu/aeu_psu.yaml +0 -204
- egse/aeu/aeu_ui.py +0 -873
- egse/aeu/arbdata/FccdRead.arb +0 -2
- egse/aeu/arbdata/FccdRead_min_points.arb +0 -2
- egse/aeu/arbdata/HeaterSync_FccdRead.arb +0 -2
- egse/aeu/arbdata/HeaterSync_ccdRead25.arb +0 -2
- egse/aeu/arbdata/HeaterSync_ccdRead31_25.arb +0 -2
- egse/aeu/arbdata/HeaterSync_ccdRead37_50.arb +0 -2
- egse/aeu/arbdata/HeaterSync_ccdRead43_75.arb +0 -2
- egse/aeu/arbdata/HeaterSync_ccdRead50.arb +0 -2
- egse/aeu/arbdata/Heater_FccdRead_min_points.arb +0 -2
- egse/aeu/arbdata/ccdRead25.arb +0 -2
- egse/aeu/arbdata/ccdRead25_150ms.arb +0 -2
- egse/aeu/arbdata/ccdRead31_25.arb +0 -2
- egse/aeu/arbdata/ccdRead31_25_150ms.arb +0 -2
- egse/aeu/arbdata/ccdRead37_50.arb +0 -2
- egse/aeu/arbdata/ccdRead37_50_150ms.arb +0 -2
- egse/aeu/arbdata/ccdRead43_75.arb +0 -2
- egse/aeu/arbdata/ccdRead43_75_150ms.arb +0 -2
- egse/aeu/arbdata/ccdRead50.arb +0 -2
- egse/aeu/arbdata/ccdRead50_150ms.arb +0 -2
- egse/alert/__init__.py +0 -1049
- egse/alert/alertman.yaml +0 -37
- egse/alert/alertman_cs.py +0 -233
- egse/alert/alertman_ui.py +0 -600
- egse/alert/gsm/beaglebone.py +0 -138
- egse/alert/gsm/beaglebone.yaml +0 -51
- egse/alert/gsm/beaglebone_cs.py +0 -108
- egse/alert/gsm/beaglebone_devif.py +0 -122
- egse/alert/gsm/beaglebone_protocol.py +0 -46
- egse/bits.py +0 -318
- egse/camera.py +0 -44
- egse/collimator/__init__.py +0 -0
- egse/collimator/fcul/__init__.py +0 -0
- egse/collimator/fcul/ogse.py +0 -1077
- egse/collimator/fcul/ogse.yaml +0 -14
- egse/collimator/fcul/ogse_cs.py +0 -154
- egse/collimator/fcul/ogse_devif.py +0 -358
- egse/collimator/fcul/ogse_protocol.py +0 -132
- egse/collimator/fcul/ogse_sim.py +0 -431
- egse/collimator/fcul/ogse_ui.py +0 -1108
- egse/command.py +0 -699
- egse/config.py +0 -410
- egse/confman/__init__.py +0 -1058
- egse/confman/confman.yaml +0 -70
- egse/confman/confman_cs.py +0 -240
- egse/confman/confman_ui.py +0 -381
- egse/confman/setup_ui.py +0 -565
- egse/control.py +0 -632
- egse/coordinates/__init__.py +0 -534
- egse/coordinates/avoidance.py +0 -100
- egse/coordinates/cslmodel.py +0 -127
- egse/coordinates/laser_tracker_to_dict.py +0 -122
- egse/coordinates/point.py +0 -707
- egse/coordinates/pyplot.py +0 -194
- egse/coordinates/referenceFrame.py +0 -1279
- egse/coordinates/refmodel.py +0 -737
- egse/coordinates/rotationMatrix.py +0 -85
- egse/coordinates/transform3d_addon.py +0 -419
- egse/csl/__init__.py +0 -50
- egse/csl/commanding.py +0 -78
- egse/csl/icons/hexapod-connected-selected.svg +0 -30
- egse/csl/icons/hexapod-connected.svg +0 -30
- egse/csl/icons/hexapod-homing-selected.svg +0 -68
- egse/csl/icons/hexapod-homing.svg +0 -68
- egse/csl/icons/hexapod-retract-selected.svg +0 -56
- egse/csl/icons/hexapod-retract.svg +0 -51
- egse/csl/icons/hexapod-zero-selected.svg +0 -56
- egse/csl/icons/hexapod-zero.svg +0 -56
- egse/csl/icons/logo-puna.svg +0 -92
- egse/csl/icons/stop.svg +0 -1
- egse/csl/initialisation.py +0 -102
- egse/csl/mech_pos_settings.yaml +0 -18
- egse/das.py +0 -1240
- egse/das.yaml +0 -7
- egse/data/conf/SETUP_CSL_00000_170620_150000.yaml +0 -5
- egse/data/conf/SETUP_CSL_00001_170620_151010.yaml +0 -69
- egse/data/conf/SETUP_CSL_00002_170620_151020.yaml +0 -69
- egse/data/conf/SETUP_CSL_00003_170620_151030.yaml +0 -69
- egse/data/conf/SETUP_CSL_00004_170620_151040.yaml +0 -69
- egse/data/conf/SETUP_CSL_00005_170620_151050.yaml +0 -69
- egse/data/conf/SETUP_CSL_00006_170620_151060.yaml +0 -69
- egse/data/conf/SETUP_CSL_00007_170620_151070.yaml +0 -69
- egse/data/conf/SETUP_CSL_00008_170620_151080.yaml +0 -75
- egse/data/conf/SETUP_CSL_00010_210308_083016.yaml +0 -138
- egse/data/conf/SETUP_INTA_00000_170620_150000.yaml +0 -4
- egse/data/conf/SETUP_SRON_00000_170620_150000.yaml +0 -4
- egse/decorators.py +0 -514
- egse/device.py +0 -269
- egse/dpu/__init__.py +0 -2698
- egse/dpu/ccd_ui.py +0 -514
- egse/dpu/dpu.py +0 -783
- egse/dpu/dpu.yaml +0 -153
- egse/dpu/dpu_cs.py +0 -272
- egse/dpu/dpu_ui.py +0 -671
- egse/dpu/fitsgen.py +0 -2096
- egse/dpu/fitsgen_ui.py +0 -399
- egse/dpu/hdf5_model.py +0 -332
- egse/dpu/hdf5_ui.py +0 -277
- egse/dpu/hdf5_viewer.py +0 -506
- egse/dpu/hk_ui.py +0 -468
- egse/dpu_commands.py +0 -81
- egse/dsi/__init__.py +0 -33
- egse/dsi/_libesl.py +0 -232
- egse/dsi/constants.py +0 -296
- egse/dsi/esl.py +0 -630
- egse/dsi/rmap.py +0 -444
- egse/dsi/rmapci.py +0 -39
- egse/dsi/spw.py +0 -335
- egse/dsi/spw_state.py +0 -29
- egse/dummy.py +0 -318
- egse/dyndummy.py +0 -179
- egse/env.py +0 -278
- egse/exceptions.py +0 -88
- egse/fdir/__init__.py +0 -26
- egse/fdir/fdir_manager.py +0 -85
- egse/fdir/fdir_manager.yaml +0 -37
- egse/fdir/fdir_manager_controller.py +0 -136
- egse/fdir/fdir_manager_cs.py +0 -164
- egse/fdir/fdir_manager_interface.py +0 -15
- egse/fdir/fdir_remote.py +0 -73
- egse/fdir/fdir_remote.yaml +0 -30
- egse/fdir/fdir_remote_controller.py +0 -30
- egse/fdir/fdir_remote_cs.py +0 -94
- egse/fdir/fdir_remote_interface.py +0 -9
- egse/fdir/fdir_remote_popup.py +0 -26
- egse/fee/__init__.py +0 -106
- egse/fee/f_fee_register.yaml +0 -43
- egse/fee/feesim.py +0 -914
- egse/fee/n_fee_hk.py +0 -768
- egse/fee/nfee.py +0 -188
- egse/filterwheel/__init__.py +0 -4
- egse/filterwheel/eksma/__init__.py +0 -49
- egse/filterwheel/eksma/fw8smc4.py +0 -657
- egse/filterwheel/eksma/fw8smc4.yaml +0 -121
- egse/filterwheel/eksma/fw8smc4_cs.py +0 -144
- egse/filterwheel/eksma/fw8smc4_devif.py +0 -473
- egse/filterwheel/eksma/fw8smc4_protocol.py +0 -82
- egse/filterwheel/eksma/fw8smc4_ui.py +0 -940
- egse/filterwheel/eksma/fw8smc5.py +0 -115
- egse/filterwheel/eksma/fw8smc5.yaml +0 -105
- egse/filterwheel/eksma/fw8smc5_controller.py +0 -307
- egse/filterwheel/eksma/fw8smc5_cs.py +0 -141
- egse/filterwheel/eksma/fw8smc5_interface.py +0 -65
- egse/filterwheel/eksma/fw8smc5_simulator.py +0 -29
- egse/filterwheel/eksma/fw8smc5_ui.py +0 -1065
- egse/filterwheel/eksma/testpythonfw.py +0 -215
- egse/fov/__init__.py +0 -65
- egse/fov/fov_hk.py +0 -710
- egse/fov/fov_ui.py +0 -859
- egse/fov/fov_ui_controller.py +0 -140
- egse/fov/fov_ui_model.py +0 -200
- egse/fov/fov_ui_view.py +0 -345
- egse/gimbal/__init__.py +0 -32
- egse/gimbal/symetrie/__init__.py +0 -26
- egse/gimbal/symetrie/alpha.py +0 -586
- egse/gimbal/symetrie/generic_gimbal_ui.py +0 -1521
- egse/gimbal/symetrie/gimbal.py +0 -877
- egse/gimbal/symetrie/gimbal.yaml +0 -168
- egse/gimbal/symetrie/gimbal_cs.py +0 -183
- egse/gimbal/symetrie/gimbal_protocol.py +0 -138
- egse/gimbal/symetrie/gimbal_ui.py +0 -361
- egse/gimbal/symetrie/pmac.py +0 -1006
- egse/gimbal/symetrie/pmac_regex.py +0 -83
- egse/graph.py +0 -132
- egse/gui/__init__.py +0 -47
- egse/gui/buttons.py +0 -378
- egse/gui/focalplane.py +0 -1285
- egse/gui/formatter.py +0 -10
- egse/gui/led.py +0 -162
- egse/gui/limitswitch.py +0 -143
- egse/gui/mechanisms.py +0 -587
- egse/gui/states.py +0 -148
- egse/gui/stripchart.py +0 -729
- egse/gui/styles.qss +0 -48
- egse/gui/switch.py +0 -112
- egse/h5.py +0 -274
- egse/help/__init__.py +0 -0
- egse/help/help_ui.py +0 -126
- egse/hexapod/__init__.py +0 -32
- egse/hexapod/symetrie/__init__.py +0 -137
- egse/hexapod/symetrie/alpha.py +0 -874
- egse/hexapod/symetrie/dynalpha.py +0 -1387
- egse/hexapod/symetrie/hexapod_ui.py +0 -1516
- egse/hexapod/symetrie/pmac.py +0 -1010
- egse/hexapod/symetrie/pmac_regex.py +0 -83
- egse/hexapod/symetrie/puna.py +0 -1167
- egse/hexapod/symetrie/puna.yaml +0 -193
- egse/hexapod/symetrie/puna_cs.py +0 -195
- egse/hexapod/symetrie/puna_protocol.py +0 -134
- egse/hexapod/symetrie/puna_ui.py +0 -433
- egse/hexapod/symetrie/punaplus.py +0 -107
- egse/hexapod/symetrie/zonda.py +0 -872
- egse/hexapod/symetrie/zonda.yaml +0 -337
- egse/hexapod/symetrie/zonda_cs.py +0 -172
- egse/hexapod/symetrie/zonda_devif.py +0 -414
- egse/hexapod/symetrie/zonda_protocol.py +0 -123
- egse/hexapod/symetrie/zonda_ui.py +0 -449
- egse/hk.py +0 -791
- egse/icons/aeu-cs-start.svg +0 -117
- egse/icons/aeu-cs-stop.svg +0 -118
- egse/icons/aeu-cs.svg +0 -107
- egse/icons/aeu_cs-started.svg +0 -112
- egse/icons/aeu_cs-stopped.svg +0 -112
- egse/icons/aeu_cs.svg +0 -55
- egse/icons/alert.svg +0 -1
- egse/icons/arrow-double-left.png +0 -0
- egse/icons/arrow-double-right.png +0 -0
- egse/icons/arrow-up.svg +0 -11
- egse/icons/backward.svg +0 -1
- egse/icons/busy.svg +0 -1
- egse/icons/cleaning.svg +0 -115
- egse/icons/color-scheme.svg +0 -1
- egse/icons/cs-connected-alert.svg +0 -91
- egse/icons/cs-connected-disabled.svg +0 -43
- egse/icons/cs-connected.svg +0 -89
- egse/icons/cs-not-connected.svg +0 -44
- egse/icons/double-left-arrow.svg +0 -1
- egse/icons/double-right-arrow.svg +0 -1
- egse/icons/erase-disabled.svg +0 -19
- egse/icons/erase.svg +0 -59
- egse/icons/fitsgen-start.svg +0 -47
- egse/icons/fitsgen-stop.svg +0 -48
- egse/icons/fitsgen.svg +0 -1
- egse/icons/forward.svg +0 -1
- egse/icons/fov-hk-start.svg +0 -33
- egse/icons/fov-hk-stop.svg +0 -37
- egse/icons/fov-hk.svg +0 -1
- egse/icons/front-desk.svg +0 -1
- egse/icons/home-actioned.svg +0 -15
- egse/icons/home-disabled.svg +0 -15
- egse/icons/home.svg +0 -13
- egse/icons/info.svg +0 -1
- egse/icons/invalid.png +0 -0
- egse/icons/led-green.svg +0 -20
- egse/icons/led-grey.svg +0 -20
- egse/icons/led-orange.svg +0 -20
- egse/icons/led-red.svg +0 -20
- egse/icons/led-square-green.svg +0 -134
- egse/icons/led-square-grey.svg +0 -134
- egse/icons/led-square-orange.svg +0 -134
- egse/icons/led-square-red.svg +0 -134
- egse/icons/limit-switch-all-green.svg +0 -115
- egse/icons/limit-switch-all-red.svg +0 -117
- egse/icons/limit-switch-el+.svg +0 -116
- egse/icons/limit-switch-el-.svg +0 -117
- egse/icons/location-marker.svg +0 -1
- egse/icons/logo-dpu.svg +0 -48
- egse/icons/logo-gimbal.svg +0 -112
- egse/icons/logo-huber.svg +0 -23
- egse/icons/logo-ogse.svg +0 -31
- egse/icons/logo-puna.svg +0 -92
- egse/icons/logo-tcs.svg +0 -29
- egse/icons/logo-zonda.svg +0 -66
- egse/icons/maximize.svg +0 -1
- egse/icons/meter.svg +0 -1
- egse/icons/more.svg +0 -45
- egse/icons/n-fee-hk-start.svg +0 -24
- egse/icons/n-fee-hk-stop.svg +0 -25
- egse/icons/n-fee-hk.svg +0 -83
- egse/icons/observing-off.svg +0 -46
- egse/icons/observing-on.svg +0 -46
- egse/icons/open-document-hdf5.png +0 -0
- egse/icons/open-document-hdf5.svg +0 -21
- egse/icons/ops-mode.svg +0 -1
- egse/icons/play-green.svg +0 -17
- egse/icons/plugged-disabled.svg +0 -27
- egse/icons/plugged.svg +0 -21
- egse/icons/pm_ui.svg +0 -1
- egse/icons/power-button-green.svg +0 -27
- egse/icons/power-button-red.svg +0 -27
- egse/icons/power-button.svg +0 -27
- egse/icons/radar.svg +0 -1
- egse/icons/radioactive.svg +0 -2
- egse/icons/reload.svg +0 -1
- egse/icons/remote-control-off.svg +0 -28
- egse/icons/remote-control-on.svg +0 -28
- egse/icons/repeat-blue.svg +0 -15
- egse/icons/repeat.svg +0 -1
- egse/icons/settings.svg +0 -1
- egse/icons/shrink.svg +0 -1
- egse/icons/shutter.svg +0 -1
- egse/icons/sign-off.svg +0 -1
- egse/icons/sign-on.svg +0 -1
- egse/icons/sim-mode.svg +0 -1
- egse/icons/small-buttons-go.svg +0 -20
- egse/icons/small-buttons-minus.svg +0 -51
- egse/icons/small-buttons-plus.svg +0 -51
- egse/icons/sponge.svg +0 -220
- egse/icons/start-button-disabled.svg +0 -84
- egse/icons/start-button.svg +0 -50
- egse/icons/stop-button-disabled.svg +0 -84
- egse/icons/stop-button.svg +0 -50
- egse/icons/stop-red.svg +0 -17
- egse/icons/stop.svg +0 -1
- egse/icons/switch-disabled-square.svg +0 -87
- egse/icons/switch-disabled.svg +0 -15
- egse/icons/switch-off-square.svg +0 -87
- egse/icons/switch-off.svg +0 -72
- egse/icons/switch-on-square.svg +0 -87
- egse/icons/switch-on.svg +0 -61
- egse/icons/temperature-control.svg +0 -44
- egse/icons/th_ui_logo.svg +0 -1
- egse/icons/unplugged.svg +0 -23
- egse/icons/unvalid.png +0 -0
- egse/icons/user-interface.svg +0 -1
- egse/icons/vacuum.svg +0 -1
- egse/icons/valid.png +0 -0
- egse/icons/zoom-to-pixel-dark.svg +0 -64
- egse/icons/zoom-to-pixel-white.svg +0 -36
- egse/images/big-rotation-stage.png +0 -0
- egse/images/connected-100.png +0 -0
- egse/images/cross.svg +0 -6
- egse/images/disconnected-100.png +0 -0
- egse/images/gui-icon.png +0 -0
- egse/images/home.svg +0 -6
- egse/images/info-icon.png +0 -0
- egse/images/led-black.svg +0 -89
- egse/images/led-green.svg +0 -85
- egse/images/led-orange.svg +0 -85
- egse/images/led-red.svg +0 -85
- egse/images/load-icon.png +0 -0
- egse/images/load-setup.png +0 -0
- egse/images/load.png +0 -0
- egse/images/pause.png +0 -0
- egse/images/play-button.svg +0 -8
- egse/images/play.png +0 -0
- egse/images/process-status.png +0 -0
- egse/images/restart.png +0 -0
- egse/images/search.png +0 -0
- egse/images/sma.png +0 -0
- egse/images/start.png +0 -0
- egse/images/stop-button.svg +0 -8
- egse/images/stop.png +0 -0
- egse/images/switch-off.svg +0 -48
- egse/images/switch-on.svg +0 -48
- egse/images/undo.png +0 -0
- egse/images/update-button.svg +0 -11
- egse/imageviewer/exposureselection.py +0 -475
- egse/imageviewer/imageviewer.py +0 -198
- egse/imageviewer/matchfocalplane.py +0 -179
- egse/imageviewer/subfieldposition.py +0 -133
- egse/lampcontrol/__init__.py +0 -4
- egse/lampcontrol/beaglebone/beaglebone.py +0 -178
- egse/lampcontrol/beaglebone/beaglebone.yaml +0 -62
- egse/lampcontrol/beaglebone/beaglebone_cs.py +0 -106
- egse/lampcontrol/beaglebone/beaglebone_devif.py +0 -150
- egse/lampcontrol/beaglebone/beaglebone_protocol.py +0 -73
- egse/lampcontrol/energetiq/__init__.py +0 -22
- egse/lampcontrol/energetiq/eq99.yaml +0 -98
- egse/lampcontrol/energetiq/lampEQ99.py +0 -283
- egse/lampcontrol/energetiq/lampEQ99_cs.py +0 -128
- egse/lampcontrol/energetiq/lampEQ99_devif.py +0 -158
- egse/lampcontrol/energetiq/lampEQ99_encode_decode_errors.py +0 -73
- egse/lampcontrol/energetiq/lampEQ99_protocol.py +0 -71
- egse/lampcontrol/energetiq/lampEQ99_ui.py +0 -465
- egse/lib/CentOS-7/EtherSpaceLink_v34_86.dylib +0 -0
- egse/lib/CentOS-8/ESL-RMAP_v34_86.dylib +0 -0
- egse/lib/CentOS-8/EtherSpaceLink_v34_86.dylib +0 -0
- egse/lib/Debian/ESL-RMAP_v34_86.dylib +0 -0
- egse/lib/Debian/EtherSpaceLink_v34_86.dylib +0 -0
- egse/lib/Debian/libetherspacelink_v35_21.dylib +0 -0
- egse/lib/Linux/ESL-RMAP_v34_86.dylib +0 -0
- egse/lib/Linux/EtherSpaceLink_v34_86.dylib +0 -0
- egse/lib/Ubuntu-20/ESL-RMAP_v34_86.dylib +0 -0
- egse/lib/Ubuntu-20/EtherSpaceLink_v34_86.dylib +0 -0
- egse/lib/gssw/python3-gssw_2.2.3+31f63c9f-1_all.deb +0 -0
- egse/lib/ximc/__pycache__/pyximc.cpython-38 2.pyc +0 -0
- egse/lib/ximc/__pycache__/pyximc.cpython-38.pyc +0 -0
- egse/lib/ximc/libximc.framework/Frameworks/libbindy.dylib +0 -0
- egse/lib/ximc/libximc.framework/Frameworks/libxiwrapper.dylib +0 -0
- egse/lib/ximc/libximc.framework/Headers/ximc.h +0 -5510
- egse/lib/ximc/libximc.framework/Resources/Info.plist +0 -42
- egse/lib/ximc/libximc.framework/Resources/keyfile.sqlite +0 -0
- egse/lib/ximc/libximc.framework/libbindy.so +0 -0
- egse/lib/ximc/libximc.framework/libximc +0 -0
- egse/lib/ximc/libximc.framework/libximc.so +0 -0
- egse/lib/ximc/libximc.framework/libximc.so.7.0.0 +0 -0
- egse/lib/ximc/libximc.framework/libxiwrapper.so +0 -0
- egse/lib/ximc/pyximc.py +0 -922
- egse/listener.py +0 -179
- egse/logger/__init__.py +0 -243
- egse/logger/log_cs.py +0 -321
- egse/metrics.py +0 -102
- egse/mixin.py +0 -464
- egse/monitoring.py +0 -95
- egse/ni/alarms/__init__.py +0 -26
- egse/ni/alarms/cdaq9375.py +0 -300
- egse/ni/alarms/cdaq9375.yaml +0 -89
- egse/ni/alarms/cdaq9375_cs.py +0 -130
- egse/ni/alarms/cdaq9375_devif.py +0 -183
- egse/ni/alarms/cdaq9375_protocol.py +0 -48
- egse/obs_inspection.py +0 -165
- egse/observer.py +0 -41
- egse/obsid.py +0 -163
- egse/powermeter/__init__.py +0 -0
- egse/powermeter/ni/__init__.py +0 -38
- egse/powermeter/ni/cdaq9184.py +0 -224
- egse/powermeter/ni/cdaq9184.yaml +0 -73
- egse/powermeter/ni/cdaq9184_cs.py +0 -130
- egse/powermeter/ni/cdaq9184_devif.py +0 -201
- egse/powermeter/ni/cdaq9184_protocol.py +0 -48
- egse/powermeter/ni/cdaq9184_ui.py +0 -544
- egse/powermeter/thorlabs/__init__.py +0 -25
- egse/powermeter/thorlabs/pm100a.py +0 -380
- egse/powermeter/thorlabs/pm100a.yaml +0 -132
- egse/powermeter/thorlabs/pm100a_cs.py +0 -136
- egse/powermeter/thorlabs/pm100a_devif.py +0 -127
- egse/powermeter/thorlabs/pm100a_protocol.py +0 -80
- egse/powermeter/thorlabs/pm100a_ui.py +0 -725
- egse/process.py +0 -451
- egse/procman/__init__.py +0 -834
- egse/procman/cannot_start_process_popup.py +0 -43
- egse/procman/procman.yaml +0 -49
- egse/procman/procman_cs.py +0 -201
- egse/procman/procman_ui.py +0 -2081
- egse/protocol.py +0 -605
- egse/proxy.py +0 -531
- egse/randomwalk.py +0 -140
- egse/reg.py +0 -585
- egse/reload.py +0 -122
- egse/reprocess.py +0 -693
- egse/resource.py +0 -333
- egse/rmap.py +0 -406
- egse/rst.py +0 -135
- egse/search.py +0 -182
- egse/serialdevice.py +0 -190
- egse/services.py +0 -247
- egse/services.yaml +0 -68
- egse/settings.py +0 -379
- egse/settings.yaml +0 -980
- egse/setup.py +0 -1181
- egse/shutter/__init__.py +0 -0
- egse/shutter/thorlabs/__init__.py +0 -19
- egse/shutter/thorlabs/ksc101.py +0 -205
- egse/shutter/thorlabs/ksc101.yaml +0 -105
- egse/shutter/thorlabs/ksc101_cs.py +0 -136
- egse/shutter/thorlabs/ksc101_devif.py +0 -201
- egse/shutter/thorlabs/ksc101_protocol.py +0 -71
- egse/shutter/thorlabs/ksc101_ui.py +0 -548
- egse/shutter/thorlabs/sc10.py +0 -82
- egse/shutter/thorlabs/sc10.yaml +0 -52
- egse/shutter/thorlabs/sc10_controller.py +0 -81
- egse/shutter/thorlabs/sc10_cs.py +0 -108
- egse/shutter/thorlabs/sc10_interface.py +0 -25
- egse/shutter/thorlabs/sc10_simulator.py +0 -30
- egse/simulator.py +0 -41
- egse/slack.py +0 -61
- egse/socketdevice.py +0 -218
- egse/sockets.py +0 -218
- egse/spw.py +0 -1401
- egse/stages/__init__.py +0 -12
- egse/stages/aerotech/ensemble.py +0 -245
- egse/stages/aerotech/ensemble.yaml +0 -205
- egse/stages/aerotech/ensemble_controller.py +0 -275
- egse/stages/aerotech/ensemble_cs.py +0 -110
- egse/stages/aerotech/ensemble_interface.py +0 -132
- egse/stages/aerotech/ensemble_parameters.py +0 -433
- egse/stages/aerotech/ensemble_simulator.py +0 -27
- egse/stages/aerotech/mgse_sim.py +0 -188
- egse/stages/arun/smd3.py +0 -110
- egse/stages/arun/smd3.yaml +0 -68
- egse/stages/arun/smd3_controller.py +0 -470
- egse/stages/arun/smd3_cs.py +0 -112
- egse/stages/arun/smd3_interface.py +0 -53
- egse/stages/arun/smd3_simulator.py +0 -27
- egse/stages/arun/smd3_stop.py +0 -16
- egse/stages/huber/__init__.py +0 -49
- egse/stages/huber/smc9300.py +0 -920
- egse/stages/huber/smc9300.yaml +0 -63
- egse/stages/huber/smc9300_cs.py +0 -178
- egse/stages/huber/smc9300_devif.py +0 -345
- egse/stages/huber/smc9300_protocol.py +0 -113
- egse/stages/huber/smc9300_sim.py +0 -547
- egse/stages/huber/smc9300_ui.py +0 -973
- egse/state.py +0 -173
- egse/statemachine.py +0 -274
- egse/storage/__init__.py +0 -1067
- egse/storage/persistence.py +0 -2295
- egse/storage/storage.yaml +0 -79
- egse/storage/storage_cs.py +0 -231
- egse/styles/dark.qss +0 -343
- egse/styles/default.qss +0 -48
- egse/synoptics/__init__.py +0 -417
- egse/synoptics/syn.yaml +0 -9
- egse/synoptics/syn_cs.py +0 -195
- egse/system.py +0 -1611
- egse/tcs/__init__.py +0 -14
- egse/tcs/tcs.py +0 -879
- egse/tcs/tcs.yaml +0 -14
- egse/tcs/tcs_cs.py +0 -202
- egse/tcs/tcs_devif.py +0 -292
- egse/tcs/tcs_protocol.py +0 -180
- egse/tcs/tcs_sim.py +0 -177
- egse/tcs/tcs_ui.py +0 -543
- egse/tdms.py +0 -171
- egse/tempcontrol/__init__.py +0 -23
- egse/tempcontrol/agilent/agilent34970.py +0 -109
- egse/tempcontrol/agilent/agilent34970.yaml +0 -44
- egse/tempcontrol/agilent/agilent34970_cs.py +0 -114
- egse/tempcontrol/agilent/agilent34970_devif.py +0 -182
- egse/tempcontrol/agilent/agilent34970_protocol.py +0 -96
- egse/tempcontrol/agilent/agilent34972.py +0 -111
- egse/tempcontrol/agilent/agilent34972.yaml +0 -44
- egse/tempcontrol/agilent/agilent34972_cs.py +0 -115
- egse/tempcontrol/agilent/agilent34972_devif.py +0 -189
- egse/tempcontrol/agilent/agilent34972_protocol.py +0 -98
- egse/tempcontrol/beaglebone/beaglebone.py +0 -341
- egse/tempcontrol/beaglebone/beaglebone.yaml +0 -110
- egse/tempcontrol/beaglebone/beaglebone_cs.py +0 -117
- egse/tempcontrol/beaglebone/beaglebone_protocol.py +0 -134
- egse/tempcontrol/beaglebone/beaglebone_ui.py +0 -674
- egse/tempcontrol/digalox/digalox.py +0 -115
- egse/tempcontrol/digalox/digalox.yaml +0 -36
- egse/tempcontrol/digalox/digalox_cs.py +0 -108
- egse/tempcontrol/digalox/digalox_protocol.py +0 -56
- egse/tempcontrol/keithley/__init__.py +0 -33
- egse/tempcontrol/keithley/daq6510.py +0 -662
- egse/tempcontrol/keithley/daq6510.yaml +0 -105
- egse/tempcontrol/keithley/daq6510_cs.py +0 -163
- egse/tempcontrol/keithley/daq6510_devif.py +0 -343
- egse/tempcontrol/keithley/daq6510_protocol.py +0 -79
- egse/tempcontrol/keithley/daq6510_sim.py +0 -186
- egse/tempcontrol/lakeshore/__init__.py +0 -33
- egse/tempcontrol/lakeshore/lsci.py +0 -361
- egse/tempcontrol/lakeshore/lsci.yaml +0 -162
- egse/tempcontrol/lakeshore/lsci_cs.py +0 -174
- egse/tempcontrol/lakeshore/lsci_devif.py +0 -292
- egse/tempcontrol/lakeshore/lsci_protocol.py +0 -76
- egse/tempcontrol/lakeshore/lsci_ui.py +0 -387
- egse/tempcontrol/ni/__init__.py +0 -0
- egse/tempcontrol/spid/spid.py +0 -109
- egse/tempcontrol/spid/spid.yaml +0 -81
- egse/tempcontrol/spid/spid_controller.py +0 -279
- egse/tempcontrol/spid/spid_cs.py +0 -136
- egse/tempcontrol/spid/spid_protocol.py +0 -107
- egse/tempcontrol/spid/spid_ui.py +0 -723
- egse/tempcontrol/srs/__init__.py +0 -22
- egse/tempcontrol/srs/ptc10.py +0 -867
- egse/tempcontrol/srs/ptc10.yaml +0 -227
- egse/tempcontrol/srs/ptc10_cs.py +0 -128
- egse/tempcontrol/srs/ptc10_devif.py +0 -116
- egse/tempcontrol/srs/ptc10_protocol.py +0 -39
- egse/tempcontrol/srs/ptc10_ui.py +0 -906
- egse/ups/apc/apc.py +0 -236
- egse/ups/apc/apc.yaml +0 -45
- egse/ups/apc/apc_cs.py +0 -101
- egse/ups/apc/apc_protocol.py +0 -125
- egse/user.yaml +0 -7
- egse/vacuum/beaglebone/beaglebone.py +0 -149
- egse/vacuum/beaglebone/beaglebone.yaml +0 -44
- egse/vacuum/beaglebone/beaglebone_cs.py +0 -108
- egse/vacuum/beaglebone/beaglebone_devif.py +0 -159
- egse/vacuum/beaglebone/beaglebone_protocol.py +0 -192
- egse/vacuum/beaglebone/beaglebone_ui.py +0 -638
- egse/vacuum/instrutech/igm402.py +0 -91
- egse/vacuum/instrutech/igm402.yaml +0 -90
- egse/vacuum/instrutech/igm402_controller.py +0 -124
- egse/vacuum/instrutech/igm402_cs.py +0 -108
- egse/vacuum/instrutech/igm402_interface.py +0 -49
- egse/vacuum/instrutech/igm402_simulator.py +0 -36
- egse/vacuum/keller/kellerBus.py +0 -256
- egse/vacuum/keller/leo3.py +0 -100
- egse/vacuum/keller/leo3.yaml +0 -38
- egse/vacuum/keller/leo3_controller.py +0 -81
- egse/vacuum/keller/leo3_cs.py +0 -101
- egse/vacuum/keller/leo3_interface.py +0 -33
- egse/vacuum/mks/evision.py +0 -86
- egse/vacuum/mks/evision.yaml +0 -75
- egse/vacuum/mks/evision_cs.py +0 -101
- egse/vacuum/mks/evision_devif.py +0 -313
- egse/vacuum/mks/evision_interface.py +0 -60
- egse/vacuum/mks/evision_simulator.py +0 -24
- egse/vacuum/mks/evision_ui.py +0 -701
- egse/vacuum/pfeiffer/acp40.py +0 -87
- egse/vacuum/pfeiffer/acp40.yaml +0 -60
- egse/vacuum/pfeiffer/acp40_controller.py +0 -117
- egse/vacuum/pfeiffer/acp40_cs.py +0 -109
- egse/vacuum/pfeiffer/acp40_interface.py +0 -40
- egse/vacuum/pfeiffer/acp40_simulator.py +0 -37
- egse/vacuum/pfeiffer/tc400.py +0 -87
- egse/vacuum/pfeiffer/tc400.yaml +0 -83
- egse/vacuum/pfeiffer/tc400_controller.py +0 -136
- egse/vacuum/pfeiffer/tc400_cs.py +0 -109
- egse/vacuum/pfeiffer/tc400_interface.py +0 -70
- egse/vacuum/pfeiffer/tc400_simulator.py +0 -35
- egse/vacuum/pfeiffer/tpg261.py +0 -80
- egse/vacuum/pfeiffer/tpg261.yaml +0 -66
- egse/vacuum/pfeiffer/tpg261_controller.py +0 -150
- egse/vacuum/pfeiffer/tpg261_cs.py +0 -109
- egse/vacuum/pfeiffer/tpg261_interface.py +0 -59
- egse/vacuum/pfeiffer/tpg261_simulator.py +0 -23
- egse/version.py +0 -174
- egse/visitedpositions.py +0 -398
- egse/windowing.py +0 -213
- egse/zmq/__init__.py +0 -28
- egse/zmq/spw.py +0 -160
- egse/zmq_ser.py +0 -41
- scripts/alerts/cold.yaml +0 -278
- scripts/alerts/example_alerts.yaml +0 -54
- scripts/alerts/transition.yaml +0 -14
- scripts/alerts/warm.yaml +0 -49
- scripts/analyse_n_fee_hk_data.py +0 -52
- scripts/check_hdf5_files.py +0 -192
- scripts/check_register_sync.py +0 -47
- scripts/check_tcs_calib_coef.py +0 -90
- scripts/correct_ccd_cold_temperature_cal.py +0 -157
- scripts/create_hdf5_report.py +0 -293
- scripts/csl_model.py +0 -420
- scripts/csl_restore_setup.py +0 -229
- scripts/export-grafana-dashboards.py +0 -49
- scripts/fdir/cs_recovery/fdir_cs_recovery.py +0 -54
- scripts/fdir/fdir_table.yaml +0 -70
- scripts/fdir/fdir_test_recovery.py +0 -10
- scripts/fdir/hw_recovery/fdir_agilent_hw_recovery.py +0 -73
- scripts/fdir/limit_recovery/fdir_agilent_limit.py +0 -61
- scripts/fdir/limit_recovery/fdir_bb_heater_limit.py +0 -59
- scripts/fdir/limit_recovery/fdir_ensemble_limit.py +0 -33
- scripts/fdir/limit_recovery/fdir_pressure_limit_recovery.py +0 -71
- scripts/fix_csv.py +0 -80
- scripts/ias/correct_ccd_temp_cal_elfique.py +0 -43
- scripts/ias/correct_ccd_temp_cal_floreffe.py +0 -43
- scripts/ias/correct_trp_swap_achel.py +0 -199
- scripts/inta/correct_ccd_temp_cal_duvel.py +0 -43
- scripts/inta/correct_ccd_temp_cal_gueuze.py +0 -43
- scripts/n_fee_supply_voltage_calculation.py +0 -92
- scripts/playground.py +0 -30
- scripts/print_hdf5_hk_data.py +0 -68
- scripts/print_register_map.py +0 -43
- scripts/remove_lines_between_matches.py +0 -188
- scripts/sron/commanding/control_heaters.py +0 -44
- scripts/sron/commanding/pumpdown.py +0 -46
- scripts/sron/commanding/set_pid_setpoint.py +0 -19
- scripts/sron/commanding/shutdown_bbb_heaters.py +0 -10
- scripts/sron/commanding/shutdown_pumps.py +0 -33
- scripts/sron/correct_mgse_coordinates_brigand_chimay.py +0 -272
- scripts/sron/correct_trp_swap_brigand.py +0 -204
- scripts/sron/gimbal_conversions.py +0 -75
- scripts/sron/tm_gen/tm_gen_agilent.py +0 -37
- scripts/sron/tm_gen/tm_gen_heaters.py +0 -4
- scripts/sron/tm_gen/tm_gen_spid.py +0 -13
- scripts/update_operational_cgse.py +0 -268
- scripts/update_operational_cgse_old.py +0 -273
egse/alert/alertman_ui.py
DELETED
|
@@ -1,600 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import argparse
|
|
3
|
-
import logging
|
|
4
|
-
import multiprocessing
|
|
5
|
-
import pickle
|
|
6
|
-
from datetime import datetime
|
|
7
|
-
|
|
8
|
-
import sys
|
|
9
|
-
import zmq
|
|
10
|
-
from PyQt5.QtCore import QThread, QObject, Qt, pyqtSignal, pyqtSlot, QRect, QSize
|
|
11
|
-
from PyQt5.QtGui import QIcon, QResizeEvent
|
|
12
|
-
from PyQt5.QtWidgets import QMainWindow, QApplication, QLabel, QHBoxLayout, QVBoxLayout, QGroupBox, QGridLayout, \
|
|
13
|
-
QWidget, QPushButton, QScrollArea, QComboBox, QMessageBox, QSpacerItem, QSizePolicy
|
|
14
|
-
|
|
15
|
-
from egse.alert import AlertManagerProxy, load_alert_configuration
|
|
16
|
-
from egse.alert import CTRL_SETTINGS as ALERT_CTRL_SETTINGS
|
|
17
|
-
from egse.gui.led import Led
|
|
18
|
-
from egse.observer import Observer, Observable
|
|
19
|
-
from egse.setup import load_setup
|
|
20
|
-
from egse.system import EPOCH_1958_1970
|
|
21
|
-
from egse.zmq_ser import connect_address
|
|
22
|
-
|
|
23
|
-
multiprocessing.current_process().name = "alert_manager_ui"
|
|
24
|
-
|
|
25
|
-
logger = logging.getLogger(__name__)
|
|
26
|
-
|
|
27
|
-
class AlertMonitoringWorker(QObject):
|
|
28
|
-
alert_values_status_signal = pyqtSignal(dict)
|
|
29
|
-
alert_sensor_status_signal = pyqtSignal(dict)
|
|
30
|
-
alert_fdir_status_signal = pyqtSignal(dict)
|
|
31
|
-
alert_phase_change_signal = pyqtSignal(str)
|
|
32
|
-
alert_status_change_signal = pyqtSignal(dict)
|
|
33
|
-
alert_timestamp_change_signal = pyqtSignal(dict)
|
|
34
|
-
# alert_exception_change_signal = pyqtSignal(dict)
|
|
35
|
-
|
|
36
|
-
def __init__(self):
|
|
37
|
-
super(AlertMonitoringWorker, self).__init__()
|
|
38
|
-
self.activate = False
|
|
39
|
-
self.just_reconnected = True
|
|
40
|
-
|
|
41
|
-
self.monitoring_socket = None
|
|
42
|
-
self.is_socket_connected = True
|
|
43
|
-
self.monitoring_timeout = 0.5
|
|
44
|
-
|
|
45
|
-
self.connect_socket()
|
|
46
|
-
|
|
47
|
-
self.previous_alert_update_status_signal = {}
|
|
48
|
-
self.previous_sensors = {}
|
|
49
|
-
self.previous_fdir = {}
|
|
50
|
-
self.previous_values = {}
|
|
51
|
-
self.pervious_timestamp = {}
|
|
52
|
-
self.previous_status = False
|
|
53
|
-
self.previous_phase = ""
|
|
54
|
-
# self.previous_exception = {}
|
|
55
|
-
|
|
56
|
-
def reset_monitor(self):
|
|
57
|
-
self.previous_alert_update_status_signal = {}
|
|
58
|
-
self.previous_sensors = {}
|
|
59
|
-
self.previous_fdir = {}
|
|
60
|
-
self.previous_values = {}
|
|
61
|
-
self.pervious_timestamp = {}
|
|
62
|
-
self.previous_status = False
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
def connect_socket(self):
|
|
66
|
-
try:
|
|
67
|
-
transport = ALERT_CTRL_SETTINGS.PROTOCOL
|
|
68
|
-
hostname = ALERT_CTRL_SETTINGS.HOSTNAME
|
|
69
|
-
|
|
70
|
-
monitoring_port = ALERT_CTRL_SETTINGS.MONITORING_PORT
|
|
71
|
-
monitoring_address = connect_address(transport, hostname, monitoring_port)
|
|
72
|
-
|
|
73
|
-
self.monitoring_socket = zmq.Context().socket(zmq.SUB)
|
|
74
|
-
self.monitoring_socket.connect(monitoring_address)
|
|
75
|
-
self.monitoring_socket.setsockopt_string(zmq.SUBSCRIBE, "")
|
|
76
|
-
|
|
77
|
-
self.monitoring_timeout = 0.5
|
|
78
|
-
|
|
79
|
-
self.is_socket_connected = True
|
|
80
|
-
except:
|
|
81
|
-
self.is_socket_connected = False
|
|
82
|
-
|
|
83
|
-
def stop(self):
|
|
84
|
-
self.monitoring_socket.close()
|
|
85
|
-
self.is_socket_connected = False
|
|
86
|
-
|
|
87
|
-
self.active = False
|
|
88
|
-
|
|
89
|
-
def start_process(self):
|
|
90
|
-
self.run()
|
|
91
|
-
|
|
92
|
-
@pyqtSlot()
|
|
93
|
-
def run(self):
|
|
94
|
-
self.active = True
|
|
95
|
-
timeout = 0
|
|
96
|
-
while self.is_socket_connected and self.active:
|
|
97
|
-
try:
|
|
98
|
-
socket_list, _, exc_list = zmq.select([self.monitoring_socket], [], [], timeout=self.monitoring_timeout)
|
|
99
|
-
|
|
100
|
-
if self.monitoring_socket in socket_list:
|
|
101
|
-
try:
|
|
102
|
-
pickle_string = self.monitoring_socket.recv()
|
|
103
|
-
except Exception:
|
|
104
|
-
raise Exception
|
|
105
|
-
|
|
106
|
-
monitoring_info = pickle.loads(pickle_string)
|
|
107
|
-
|
|
108
|
-
values = {}
|
|
109
|
-
sensors = {}
|
|
110
|
-
running = {}
|
|
111
|
-
timestamp = {}
|
|
112
|
-
# exception = {}
|
|
113
|
-
|
|
114
|
-
phase = monitoring_info['phase']
|
|
115
|
-
|
|
116
|
-
if phase != self.previous_phase:
|
|
117
|
-
self.alert_phase_change_signal.emit(phase)
|
|
118
|
-
continue
|
|
119
|
-
|
|
120
|
-
self.previous_phase = phase
|
|
121
|
-
|
|
122
|
-
if monitoring_info['alert_status'] != None:
|
|
123
|
-
for key, value in monitoring_info['alert_status'].items():
|
|
124
|
-
values[key] = value['value']
|
|
125
|
-
sensors[key] = {'triggered' : value['triggered'],
|
|
126
|
-
'active' : value['active']}
|
|
127
|
-
running[key] = value['active']
|
|
128
|
-
timestamp[key] = datetime.fromtimestamp(float(value['lastTimestamp']) - EPOCH_1958_1970)
|
|
129
|
-
# exception[key] = value['lastException']
|
|
130
|
-
|
|
131
|
-
if values != self.previous_values:
|
|
132
|
-
self.alert_values_status_signal.emit(values)
|
|
133
|
-
|
|
134
|
-
self.previous_values = values
|
|
135
|
-
|
|
136
|
-
if running != self.previous_status:
|
|
137
|
-
self.alert_status_change_signal.emit(running)
|
|
138
|
-
|
|
139
|
-
self.previous_status = running
|
|
140
|
-
|
|
141
|
-
if sensors != self.previous_sensors:
|
|
142
|
-
self.alert_sensor_status_signal.emit(sensors)
|
|
143
|
-
|
|
144
|
-
self.previous_sensors = sensors
|
|
145
|
-
|
|
146
|
-
if timestamp != self.pervious_timestamp:
|
|
147
|
-
self.alert_timestamp_change_signal.emit(timestamp)
|
|
148
|
-
|
|
149
|
-
self.pervious_timestamp = timestamp
|
|
150
|
-
|
|
151
|
-
# if exception != self.previous_exception:
|
|
152
|
-
# self.alert_exception_change_signal.emit(exception)
|
|
153
|
-
|
|
154
|
-
# self.previous_exception = exception
|
|
155
|
-
|
|
156
|
-
except zmq.ZMQError as exc:
|
|
157
|
-
raise exc
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
class AlertWidget(QGroupBox):
|
|
161
|
-
def __init__(self, configuration):
|
|
162
|
-
super().__init__()
|
|
163
|
-
self.name = configuration.name
|
|
164
|
-
|
|
165
|
-
self.setMaximumSize(400, 120)
|
|
166
|
-
self.setMinimumSize(350, 100)
|
|
167
|
-
self.verticalLayout = QVBoxLayout(self)
|
|
168
|
-
self.verticalLayout.setObjectName("verticalLayout")
|
|
169
|
-
self.horizontalLayout = QHBoxLayout()
|
|
170
|
-
self.horizontalLayout.setObjectName("horizontalLayout")
|
|
171
|
-
self.widget = Led(self)
|
|
172
|
-
self.widget.setMinimumSize(25, 25)
|
|
173
|
-
self.widget.setMaximumSize(25, 25)
|
|
174
|
-
self.widget.setObjectName("widget")
|
|
175
|
-
self.horizontalLayout.addWidget(self.widget)
|
|
176
|
-
self.verticalLayout_2 = QVBoxLayout()
|
|
177
|
-
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
|
178
|
-
self.label = QLabel(self)
|
|
179
|
-
self.label.setText(f"<b>{configuration.name}</b>")
|
|
180
|
-
self.label.setMinimumSize(200, 0)
|
|
181
|
-
self.label.setObjectName("label")
|
|
182
|
-
self.verticalLayout_2.addWidget(self.label)
|
|
183
|
-
self.horizontalLayout_2 = QHBoxLayout()
|
|
184
|
-
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
|
185
|
-
self.label_2 = QLabel(self)
|
|
186
|
-
self.label_2.setText("[Current value]")
|
|
187
|
-
self.label_2.setMinimumSize(100, 0)
|
|
188
|
-
self.label_2.setObjectName("label_2")
|
|
189
|
-
self.horizontalLayout_2.addWidget(self.label_2)
|
|
190
|
-
self.label_3 = QLabel(self)
|
|
191
|
-
self.label_3.setText(f"{configuration.unit}")
|
|
192
|
-
self.label_3.setObjectName("label_3")
|
|
193
|
-
self.horizontalLayout_2.addWidget(self.label_3)
|
|
194
|
-
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
|
|
195
|
-
self.label_4 = QLabel(self)
|
|
196
|
-
|
|
197
|
-
if configuration.alert_type == 0:
|
|
198
|
-
if configuration.limits['min'] and configuration.limits['max']:
|
|
199
|
-
self.label_4.setText(f"Min: {configuration.limits['min']}, Max: {configuration.limits['max']}")
|
|
200
|
-
else:
|
|
201
|
-
if configuration.limits['min']:
|
|
202
|
-
self.label_4.setText(f"Min: {configuration.limits['min']}")
|
|
203
|
-
if configuration.limits['max']:
|
|
204
|
-
self.label_4.setText(f"Max: {configuration.limits['max']}")
|
|
205
|
-
|
|
206
|
-
if configuration.alert_type == 2:
|
|
207
|
-
self.label_4.setText(f"Rate of change: {configuration.limits['limit']}")
|
|
208
|
-
|
|
209
|
-
self.label_4.setObjectName("label_4")
|
|
210
|
-
self.verticalLayout_2.addWidget(self.label_4)
|
|
211
|
-
|
|
212
|
-
self.label_5 = QLabel(self)
|
|
213
|
-
self.label_5.setText("00:00:00 00-00-00")
|
|
214
|
-
self.verticalLayout_2.addWidget(self.label_5)
|
|
215
|
-
|
|
216
|
-
self.horizontalLayout.addLayout(self.verticalLayout_2)
|
|
217
|
-
spacerItem = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
|
|
218
|
-
self.horizontalLayout.addItem(spacerItem)
|
|
219
|
-
self.verticalLayout_3 = QVBoxLayout()
|
|
220
|
-
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
|
221
|
-
spacerItem1 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
|
|
222
|
-
self.verticalLayout_3.addItem(spacerItem1)
|
|
223
|
-
self.pushButton = QPushButton(self)
|
|
224
|
-
self.pushButton.setText("Start")
|
|
225
|
-
self.pushButton.setMinimumSize(100, 0)
|
|
226
|
-
icon = QIcon.fromTheme("media-playback-start")
|
|
227
|
-
self.pushButton.setIcon(icon)
|
|
228
|
-
self.pushButton.setObjectName("pushButton")
|
|
229
|
-
self.verticalLayout_3.addWidget(self.pushButton)
|
|
230
|
-
self.horizontalLayout.addLayout(self.verticalLayout_3)
|
|
231
|
-
self.verticalLayout.addLayout(self.horizontalLayout)
|
|
232
|
-
|
|
233
|
-
class AlertWindow(QGroupBox):
|
|
234
|
-
def __init__(self, configuration):
|
|
235
|
-
super().__init__()
|
|
236
|
-
self.configuration = configuration
|
|
237
|
-
self._phases = load_setup().gse.alert_manager.configuration
|
|
238
|
-
self.alerts = {}
|
|
239
|
-
self.verticalLayout = QVBoxLayout(self)
|
|
240
|
-
self.verticalLayout.setObjectName("verticalLayout")
|
|
241
|
-
self.horizontalLayout_2 = QHBoxLayout()
|
|
242
|
-
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
|
243
|
-
self.pushButton_2 = QPushButton(self)
|
|
244
|
-
self.pushButton_2.setMaximumSize(QSize(90, 16777215))
|
|
245
|
-
self.pushButton_2.setMinimumSize(QSize(90, 0))
|
|
246
|
-
icon = QIcon.fromTheme("media-playback-start")
|
|
247
|
-
self.pushButton_2.setIcon(icon)
|
|
248
|
-
self.pushButton_2.setObjectName("pushButton_2")
|
|
249
|
-
self.pushButton_2.setText("Start")
|
|
250
|
-
self.horizontalLayout_2.addWidget(self.pushButton_2)
|
|
251
|
-
self.pushButton = QPushButton(self)
|
|
252
|
-
self.pushButton.setMaximumSize(QSize(90, 16777215))
|
|
253
|
-
self.pushButton.setMinimumSize(QSize(90, 0))
|
|
254
|
-
icon = QIcon.fromTheme("media-playback-stop")
|
|
255
|
-
self.pushButton.setIcon(icon)
|
|
256
|
-
self.pushButton.setObjectName("pushButton")
|
|
257
|
-
self.pushButton.setText("Stop")
|
|
258
|
-
self.horizontalLayout_2.addWidget(self.pushButton)
|
|
259
|
-
spacerItem = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
|
|
260
|
-
self.horizontalLayout_2.addItem(spacerItem)
|
|
261
|
-
self.pushButton_3 = QPushButton(self)
|
|
262
|
-
self.pushButton_3.setText("Clear FDIR")
|
|
263
|
-
self.pushButton_3.setMaximumSize(QSize(90, 16777215))
|
|
264
|
-
self.pushButton_3.setMinimumSize(QSize(90, 0))
|
|
265
|
-
icon = QIcon.fromTheme('edit-clear-all-symbolic')
|
|
266
|
-
self.pushButton_3.setIcon(icon)
|
|
267
|
-
self.horizontalLayout_2.addWidget(self.pushButton_3)
|
|
268
|
-
self.comboBox = QComboBox(self)
|
|
269
|
-
self.comboBox.setMinimumSize(QSize(90, 0))
|
|
270
|
-
self.comboBox.setObjectName("comboBox")
|
|
271
|
-
self.comboBox.addItem('none')
|
|
272
|
-
self.comboBox.addItems([phase for phase in self._phases.keys()])
|
|
273
|
-
# self.comboBox.addItems(['none', 'warm', 'transition', 'cold'])
|
|
274
|
-
self.horizontalLayout_2.addWidget(self.comboBox)
|
|
275
|
-
self.verticalLayout.addLayout(self.horizontalLayout_2)
|
|
276
|
-
self.scrollArea = QScrollArea(self)
|
|
277
|
-
self.scrollArea.setWidgetResizable(True)
|
|
278
|
-
self.scrollArea.setObjectName("scrollArea")
|
|
279
|
-
self.scrollArea.setMinimumWidth(420)
|
|
280
|
-
self.scrollArea.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
|
281
|
-
self.scrollAreaWidgetContents_3 = QWidget()
|
|
282
|
-
self.scrollAreaWidgetContents_3.setGeometry(QRect(0, 0, 350, 700))
|
|
283
|
-
self.scrollAreaWidgetContents_3.setObjectName("scrollAreaWidgetContents_3")
|
|
284
|
-
self.verticalLayout_2 = QVBoxLayout(self.scrollAreaWidgetContents_3)
|
|
285
|
-
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
|
286
|
-
self.gridLayout = QGridLayout()
|
|
287
|
-
self.gridLayout.setObjectName("gridLayout")
|
|
288
|
-
self.verticalLayout_2.addLayout(self.gridLayout)
|
|
289
|
-
self.scrollArea.setWidget(self.scrollAreaWidgetContents_3)
|
|
290
|
-
self.setLayout(self.verticalLayout)
|
|
291
|
-
|
|
292
|
-
self.initialize(self.configuration)
|
|
293
|
-
|
|
294
|
-
def initialize(self, config=None):
|
|
295
|
-
if config != None:
|
|
296
|
-
self.configuration = config
|
|
297
|
-
self.alerts = {}
|
|
298
|
-
for idx, (key, config) in enumerate(self.configuration.items()):
|
|
299
|
-
self.alerts[key] = AlertWidget(config)
|
|
300
|
-
self.drawScrollArea()
|
|
301
|
-
self.resizeScrollArea()
|
|
302
|
-
else:
|
|
303
|
-
self.drawScrollArea()
|
|
304
|
-
|
|
305
|
-
def drawScrollArea(self):
|
|
306
|
-
# if self.configuration != None:
|
|
307
|
-
self.verticalLayout.removeWidget(self.scrollArea)
|
|
308
|
-
self.scrollArea = QScrollArea(self)
|
|
309
|
-
self.scrollArea.setWidgetResizable(True)
|
|
310
|
-
self.scrollArea.setObjectName("scrollArea")
|
|
311
|
-
self.scrollArea.setMinimumWidth(420)
|
|
312
|
-
self.scrollArea.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
|
313
|
-
self.scrollAreaWidgetContents_3 = QWidget()
|
|
314
|
-
self.scrollAreaWidgetContents_3.setGeometry(QRect(0, 0, 350, 700))
|
|
315
|
-
self.scrollAreaWidgetContents_3.setObjectName("scrollAreaWidgetContents_3")
|
|
316
|
-
self.verticalLayout_2 = QVBoxLayout(self.scrollAreaWidgetContents_3)
|
|
317
|
-
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
|
318
|
-
self.gridLayout = QGridLayout()
|
|
319
|
-
self.gridLayout.setObjectName("gridLayout")
|
|
320
|
-
self.verticalLayout_2.addLayout(self.gridLayout)
|
|
321
|
-
self.scrollArea.setWidget(self.scrollAreaWidgetContents_3)
|
|
322
|
-
self.verticalLayout.insertWidget(1, self.scrollArea)
|
|
323
|
-
|
|
324
|
-
def resizeScrollArea(self):
|
|
325
|
-
width = self.parent().frameGeometry().width()
|
|
326
|
-
|
|
327
|
-
widget_width = 350
|
|
328
|
-
|
|
329
|
-
num_cols = int(width / widget_width)
|
|
330
|
-
|
|
331
|
-
row = 0
|
|
332
|
-
column = 0
|
|
333
|
-
|
|
334
|
-
if len(self.alerts) == 0:
|
|
335
|
-
return
|
|
336
|
-
|
|
337
|
-
for idx, value in enumerate(self.alerts.values()):
|
|
338
|
-
if column >= num_cols and (column % num_cols) == 0:
|
|
339
|
-
row += 1
|
|
340
|
-
self.gridLayout.addWidget(value, row, column % num_cols)
|
|
341
|
-
column += 1
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
spacerItem_2 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
|
|
345
|
-
self.gridLayout.addItem(spacerItem_2)
|
|
346
|
-
|
|
347
|
-
def resizeEvent(self, a0: QResizeEvent) -> None:
|
|
348
|
-
self.resizeScrollArea()
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
class AlertUIView(QMainWindow, Observable):
|
|
353
|
-
def __init__(self):
|
|
354
|
-
super().__init__()
|
|
355
|
-
self.setGeometry(600, 300, 100, 700)
|
|
356
|
-
self.setWindowTitle("Alert Manager GUI")
|
|
357
|
-
self.configuration = None
|
|
358
|
-
self.phases = load_setup().gse.alert_manager.configuration.keys()
|
|
359
|
-
self.alert_monitoring_thread = QThread(self)
|
|
360
|
-
self.alert_monitoring_worker = AlertMonitoringWorker()
|
|
361
|
-
self.alert_monitoring_worker.moveToThread(self.alert_monitoring_thread)
|
|
362
|
-
|
|
363
|
-
self.alert_monitoring_worker.alert_phase_change_signal.connect(self.on_phase_change_signal)
|
|
364
|
-
self.alert_monitoring_worker.alert_values_status_signal.connect(self.on_alert_value_status_signal)
|
|
365
|
-
self.alert_monitoring_worker.alert_sensor_status_signal.connect(self.on_alert_sensor_status_signal)
|
|
366
|
-
self.alert_monitoring_worker.alert_status_change_signal.connect(self.on_alert_status_change_signal)
|
|
367
|
-
self.alert_monitoring_worker.alert_timestamp_change_signal.connect(self.on_alert_timestamp_change_signal)
|
|
368
|
-
# self.alert_monitoring_worker.alert_exception_change_signal.connect(self.on_alert_exception_raised_signal)
|
|
369
|
-
self.alert_monitoring_thread.started.connect(self.alert_monitoring_worker.start_process)
|
|
370
|
-
|
|
371
|
-
self.alert_monitoring_thread.start()
|
|
372
|
-
|
|
373
|
-
self.initUI()
|
|
374
|
-
|
|
375
|
-
def initUI(self):
|
|
376
|
-
self.groupbox = AlertWindow(self.configuration)
|
|
377
|
-
|
|
378
|
-
self.groupbox.pushButton_2.clicked.connect(self.start_all_alerts)
|
|
379
|
-
self.groupbox.pushButton.clicked.connect(self.stop_all_alerts)
|
|
380
|
-
|
|
381
|
-
self.groupbox.comboBox.activated[str].connect(self.configuration_dialog)
|
|
382
|
-
self.setCentralWidget(self.groupbox)
|
|
383
|
-
|
|
384
|
-
def configuration_dialog(self):
|
|
385
|
-
sender = self.sender()
|
|
386
|
-
phase = sender.currentText()
|
|
387
|
-
msg = QMessageBox()
|
|
388
|
-
msg.setIcon(QMessageBox.Question)
|
|
389
|
-
msg.setText(f"You are about to configure the alert manager for the {phase} phase")
|
|
390
|
-
msg.setInformativeText(f"Are you sure that you want to configure the alert manager for the {phase} phase?")
|
|
391
|
-
msg.setWindowTitle(f"Configuration confirmation")
|
|
392
|
-
msg.setStandardButtons(QMessageBox.Ok | QMessageBox.Abort)
|
|
393
|
-
|
|
394
|
-
retval = msg.exec_()
|
|
395
|
-
if retval == QMessageBox.Ok:
|
|
396
|
-
self.actionObservers({"load_new_configuration" : [phase]})
|
|
397
|
-
self.load_new_phase(phase)
|
|
398
|
-
else:
|
|
399
|
-
self.groupbox.comboBox.setCurrentText(phase)
|
|
400
|
-
|
|
401
|
-
def load_new_phase(self, phase):
|
|
402
|
-
if phase != 'none':
|
|
403
|
-
self.load_configuration(phase)
|
|
404
|
-
self.alert_monitoring_worker.previous_phase = phase
|
|
405
|
-
self.groupbox.initialize(self.configuration)
|
|
406
|
-
|
|
407
|
-
for key in self.configuration.keys():
|
|
408
|
-
self.groupbox.alerts[key].pushButton.clicked.connect(self.on_alert_pushbutton_clicked)
|
|
409
|
-
|
|
410
|
-
self.alert_monitoring_worker.reset_monitor()
|
|
411
|
-
else:
|
|
412
|
-
self.alert_monitoring_worker.previous_phase = phase
|
|
413
|
-
self.groupbox.initialize()
|
|
414
|
-
self.alert_monitoring_worker.reset_monitor()
|
|
415
|
-
|
|
416
|
-
self.setCentralWidget(self.groupbox)
|
|
417
|
-
|
|
418
|
-
def start_all_alerts(self):
|
|
419
|
-
self.actionObservers({"start_all_alerts" : []})
|
|
420
|
-
|
|
421
|
-
def stop_all_alerts(self):
|
|
422
|
-
self.actionObservers({"stop_all_alerts" : []})
|
|
423
|
-
|
|
424
|
-
def load_configuration(self, phase):
|
|
425
|
-
_, self.configuration = load_alert_configuration(phase)
|
|
426
|
-
|
|
427
|
-
def on_alert_status_change_signal(self, monitoring_info: bool):
|
|
428
|
-
for idx, (name, value) in enumerate(monitoring_info.items()):
|
|
429
|
-
if value:
|
|
430
|
-
self.groupbox.alerts[name].widget.set_color(1)
|
|
431
|
-
icon = QIcon.fromTheme("media-playback-stop")
|
|
432
|
-
self.groupbox.alerts[name].pushButton.setIcon(icon)
|
|
433
|
-
self.groupbox.alerts[name].pushButton.setText("Stop")
|
|
434
|
-
else:
|
|
435
|
-
self.groupbox.alerts[name].widget.set_color(2)
|
|
436
|
-
icon = QIcon.fromTheme("media-playback-start")
|
|
437
|
-
self.groupbox.alerts[name].pushButton.setIcon(icon)
|
|
438
|
-
self.groupbox.alerts[name].pushButton.setText("Start")
|
|
439
|
-
|
|
440
|
-
def on_alert_timestamp_change_signal(self, monitoring_info):
|
|
441
|
-
for idx, (name, value) in enumerate(monitoring_info.items()):
|
|
442
|
-
self.groupbox.alerts[name].label_5.setText(f"{value.strftime('%d/%m/%Y, %H:%M:%S')}")
|
|
443
|
-
|
|
444
|
-
def on_alert_value_status_signal(self, monitoring_info: dict):
|
|
445
|
-
for idx, (name, value) in enumerate(monitoring_info.items()):
|
|
446
|
-
self.groupbox.alerts[name].label_2.setText(f"Value: {float(value):2f}")
|
|
447
|
-
|
|
448
|
-
def on_alert_sensor_status_signal(self, monitoring_info: dict):
|
|
449
|
-
for idx, (name, state) in enumerate(monitoring_info.items()):
|
|
450
|
-
if state['triggered']:
|
|
451
|
-
if state['active']:
|
|
452
|
-
self.groupbox.alerts[name].widget.set_color(3)
|
|
453
|
-
else:
|
|
454
|
-
self.groupbox.alerts[name].widget.set_color(2)
|
|
455
|
-
|
|
456
|
-
self.groupbox.alerts[name].setStyleSheet("""QGroupBox {border: 1px solid red;}""")
|
|
457
|
-
else:
|
|
458
|
-
if state['active']:
|
|
459
|
-
self.groupbox.alerts[name].widget.set_color(1)
|
|
460
|
-
else:
|
|
461
|
-
self.groupbox.alerts[name].widget.set_color(2)
|
|
462
|
-
|
|
463
|
-
self.groupbox.alerts[name].setStyleSheet('fusion')
|
|
464
|
-
|
|
465
|
-
def on_phase_change_signal(self, monitoring_info: dict):
|
|
466
|
-
self.load_new_phase(monitoring_info)
|
|
467
|
-
self.groupbox.comboBox.setCurrentText(monitoring_info)
|
|
468
|
-
|
|
469
|
-
def on_alert_pushbutton_clicked(self):
|
|
470
|
-
name = self.sender().parent().name
|
|
471
|
-
text = self.sender().text()
|
|
472
|
-
if text != "Start":
|
|
473
|
-
self.actionObservers({'stop_alert': [name]})
|
|
474
|
-
elif text != "Stop":
|
|
475
|
-
self.actionObservers({'start_alert' : [name]})
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
class AlertUIModel:
|
|
480
|
-
def __init__(self, mode):
|
|
481
|
-
self.mode = mode
|
|
482
|
-
|
|
483
|
-
if self.mode == 'proxy':
|
|
484
|
-
try:
|
|
485
|
-
self.alert_manager = AlertManagerProxy()
|
|
486
|
-
except Exception as exc:
|
|
487
|
-
raise exc
|
|
488
|
-
elif self.mode == 'simulator':
|
|
489
|
-
self.alert_manager = AlertManagerProxy()
|
|
490
|
-
else:
|
|
491
|
-
raise ValueError(f'Unknown type of alert manager implementation passed into the model')
|
|
492
|
-
|
|
493
|
-
if self.alert_manager is not None:
|
|
494
|
-
logger.debug(f"Alert manager controller initialized as {self.mode}")
|
|
495
|
-
|
|
496
|
-
def load_configuration(self, phase: str):
|
|
497
|
-
with AlertManagerProxy() as am:
|
|
498
|
-
am.load_configuration(phase)
|
|
499
|
-
|
|
500
|
-
def start_alert(self, name):
|
|
501
|
-
with AlertManagerProxy() as am:
|
|
502
|
-
am.start_alert(name)
|
|
503
|
-
|
|
504
|
-
def stop_alert(self, name):
|
|
505
|
-
with AlertManagerProxy() as am:
|
|
506
|
-
am.stop_alert(name)
|
|
507
|
-
|
|
508
|
-
def stop_all_alerts(self):
|
|
509
|
-
with AlertManagerProxy() as am:
|
|
510
|
-
am.stop_alert(None)
|
|
511
|
-
|
|
512
|
-
def start_all_alerts(self):
|
|
513
|
-
with AlertManagerProxy() as am:
|
|
514
|
-
am.start_alert(None)
|
|
515
|
-
|
|
516
|
-
class AlertUIController(Observer):
|
|
517
|
-
def __init__(self, model: AlertUIModel, view: AlertUIView):
|
|
518
|
-
self.model = model
|
|
519
|
-
self.view = view
|
|
520
|
-
self.view.addObserver(self)
|
|
521
|
-
|
|
522
|
-
def update(self, changed_object):
|
|
523
|
-
|
|
524
|
-
text = changed_object.text()
|
|
525
|
-
|
|
526
|
-
if text == "Reconnect":
|
|
527
|
-
|
|
528
|
-
if changed_object.isChecked():
|
|
529
|
-
|
|
530
|
-
logger.debug("Reconnecting the Alert manager model.")
|
|
531
|
-
|
|
532
|
-
if self.model.reconnect():
|
|
533
|
-
|
|
534
|
-
self.view.set_connection_state(True)
|
|
535
|
-
|
|
536
|
-
if not self.model.has_commands():
|
|
537
|
-
|
|
538
|
-
self.model.load_commands()
|
|
539
|
-
|
|
540
|
-
else:
|
|
541
|
-
self.view.reconnect_action.setChecked(False)
|
|
542
|
-
else:
|
|
543
|
-
|
|
544
|
-
logger.debug("Disconnecting the Alert manager model.")
|
|
545
|
-
self.model.disconnect()
|
|
546
|
-
self.view.set_connection_state(False)
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
def do(self, actions):
|
|
550
|
-
for action, value in actions.items():
|
|
551
|
-
logger.debug(f'do {action} with {value}')
|
|
552
|
-
if action == 'load_new_configuration':
|
|
553
|
-
self.model.load_configuration(value[0])
|
|
554
|
-
if action == 'start_alert':
|
|
555
|
-
self.model.start_alert(value[0])
|
|
556
|
-
if action == 'stop_alert':
|
|
557
|
-
self.model.stop_alert(value[0])
|
|
558
|
-
if action == 'stop_all_alerts':
|
|
559
|
-
self.model.stop_all_alerts()
|
|
560
|
-
if action == 'start_all_alerts':
|
|
561
|
-
self.model.start_all_alerts()
|
|
562
|
-
|
|
563
|
-
def parse_arguments():
|
|
564
|
-
"""
|
|
565
|
-
Prepare the arguments that are specific for this application.
|
|
566
|
-
"""
|
|
567
|
-
parser = argparse.ArgumentParser()
|
|
568
|
-
parser.add_argument(
|
|
569
|
-
"--type",
|
|
570
|
-
dest="type",
|
|
571
|
-
action="store",
|
|
572
|
-
choices={"proxy", "simulator"},
|
|
573
|
-
help="Specify Alert implementation you want to connect to.",
|
|
574
|
-
default="proxy",
|
|
575
|
-
)
|
|
576
|
-
|
|
577
|
-
args = parser.parse_args()
|
|
578
|
-
return args
|
|
579
|
-
|
|
580
|
-
def main():
|
|
581
|
-
args = list(sys.argv)
|
|
582
|
-
app = QApplication(args)
|
|
583
|
-
|
|
584
|
-
args = parse_arguments()
|
|
585
|
-
|
|
586
|
-
if args.type == 'proxy':
|
|
587
|
-
try:
|
|
588
|
-
proxy = AlertManagerProxy
|
|
589
|
-
except Exception:
|
|
590
|
-
raise Exception
|
|
591
|
-
|
|
592
|
-
view = AlertUIView()
|
|
593
|
-
model = AlertUIModel(args.type)
|
|
594
|
-
controller = AlertUIController(model, view)
|
|
595
|
-
|
|
596
|
-
view.show()
|
|
597
|
-
sys.exit(app.exec_())
|
|
598
|
-
|
|
599
|
-
if __name__ == '__main__':
|
|
600
|
-
main()
|