forked from QuantumKeLab/QCoDeS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit_fridge.py
38 lines (28 loc) · 1.12 KB
/
init_fridge.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
import sys
import runpy
import os
import qcodes as qc
station = qc.Station()
fridge_name = sys.argv[1]
dirpath = os.getcwd()
code_path = '\\'.join(dirpath.split('\\')[0:-1])
sys.path.append(code_path+'\\drivers')
if fridge_name == 'Janis':
exec(open('../../../../../code/fridge_specific/init_Janis.py').read())
elif fridge_name == 'Gecko':
exec(open('../../../../../code/fridge_specific/init_Gecko.py').read())
elif fridge_name == 'Fristi':
exec(open('../../../../../code/fridge_specific/init_Fristi.py').read())
elif fridge_name == 'Cactus':
exec(open('../../../../../code/fridge_specific/init_Cactus.py').read())
elif fridge_name == 'CF900':
exec(open('../../../../../code/fridge_specific/init_CF900.py').read())
elif fridge_name == 'SG1':
exec(open('../../../../../code/fridge_specific/init_SG1.py').read())
elif fridge_name == 'CF1400':
exec(open('../../../../../code/fridge_specific/init_CF1400.py').read())
elif fridge_name == 'BF1':
# exec(open('../fridge_specific/init_BF1.py').read())
exec(open('C:\\qcodes\\fridge_specific\\init_BF1.py').read())
else:
print('Wrong fridge name!')