Skip to content
Snippets Groups Projects
Commit 4d44e57d authored by Daniel Brown's avatar Daniel Brown
Browse files

fixing S/N qhd parsing

parent af77202c
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ fsig noise l1 amp 1 0 1
qhd qhd180 180 n2 n3
qhd qhd0 0 n2 n3
qhdS qhd2 0 n2 n3
qhdN qhd2 0 n2 n3
scale meter qhd180
scale meter qhd0
scale meter qhd2
......@@ -21,6 +22,8 @@ scale 2 qhd0
xaxis l1 phase lin 0 360 360
""")
print "".join(kat.generateKatScript())
out = kat.run()
out.plot()
......
......@@ -850,7 +850,12 @@ class qhd(Detector2):
def parseFinesseText(text):
values = text.split()
return qhd(values[1], float(values[2]), str(values[3]), str(values[4]))
sens = values[0][-1]
if sens != 'S' and sens != 'N':
sens = None
return qhd(values[1], float(values[2]), str(values[3]), str(values[4]), sensitivity = sens)
def getFinesseText(self):
rtn = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment