-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHe_Monitor_3He.py
More file actions
36 lines (32 loc) · 902 Bytes
/
He_Monitor_3He.py
File metadata and controls
36 lines (32 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import sys
from PyQt5 import QtWidgets
from LevelMonitorGUI import LevelMonitorGUI
params = {
'active length':37,
'belly bottom level':11,
'belly top level':33,
'belly L per in':5.26,
'tail L per in':2.8, # Rough estimate based on magnet geometry
'fill level':14.06,
'default interval':'05:00:00',
'fillmode interval':'00:03:00',
'nanosquid system':'3He',
'SQL Database':"Squid3He",
}
""" The following runs the GUI"""
if __name__ == "__main__":
import qt5reactor
app = QtWidgets.QApplication(sys.argv)
qt5reactor.install()
from twisted.internet import reactor
try:
window = LevelMonitorGUI(reactor, params)
window.show()
except:
from traceback import format_exc
print("-------------------")
print("Main loop crashed")
print(format_exc())
print("-------------------")
reactor.runReturn()
sys.exit(app.exec_())