-
Notifications
You must be signed in to change notification settings - Fork 2
/
create_settings_file.py
78 lines (62 loc) · 2.08 KB
/
create_settings_file.py
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import json
settings=dict()
settings['log_file'] = r"\\134.61.7.160\LogFiles\60555 Bluhm\log 190703 170733.vcl"
settings['colors'] = {
'background': '#333333',
'text': '#7FDBFF'
}
settings['duration'] = 3
settings['fridge_name'] = 'Triton 200'
settings['gridcolor'] = '#555555'
settings['zerolinecolor'] = '#666666'
settings['external_stylesheets'] = ['./static/bWLwgP.css']
settings['layout'] = {
'plot_bgcolor': settings['colors']['background'],
'paper_bgcolor': settings['colors']['background'],
'font': {
'color': settings['colors']['text']
},
'uirevision': None,
'height': 800
}
settings['MC_Cernox'] = 'MC Plate Cernox T(K)'
settings['MC_RuOx'] = 'MC Plate T(K)'
settings['Magnet'] = 'Magnet T(K)'
settings['lakeshore_sensors']=[
'PT1 Head',
'PT1 Plate',
'PT2 Head',
'PT2 Plate',
'Magnet',
'Still Plate',
'Cold Plate',
'MC Plate',
'MC Plate Cernox'
]
settings['pressure_sensors']=[
'P1 Tank (Bar)',
'P2 Condense (Bar)',
'P3 Still (mBar)',
'P4 TurboBack (mBar)',
'P5 ForepumpBack (Bar)',
'Dewar (mBar)' #Does it make sense to include the dewar or move it to misc?
]
settings['misc_sensors']=[
'Input Water Temp',
'Output Water Temp' ,
'Oil Temp',
'Helium Temp',
'Motor Current',
'Low Pressure',
'Low Pressure Avg',
'Still heater (W)',
'chamber heater (W)',
'IVC sorb heater (W)',
'turbo current(A)',
'turbo power(W)',
'turbo speed(Hz)',
'turbo motor(C)',
'turbo bottom(C)'
]
with open('triton200.json','w') as file:
json.dump(settings,file, indent=4, sort_keys=True)