Commit 51f9fc12 authored by Andreas Freise's avatar Andreas Freise
Browse files

fixing bs read problem for bs1/bs2

parent ff7a2761
...@@ -295,16 +295,21 @@ class beamSplitter(AbstractMirrorComponent): ...@@ -295,16 +295,21 @@ class beamSplitter(AbstractMirrorComponent):
if len(values) != 10: if len(values) != 10:
raise exceptions.RuntimeError("Beam splitter Finesse code format incorrect '{0}'".format(text)) raise exceptions.RuntimeError("Beam splitter Finesse code format incorrect '{0}'".format(text))
if len(values[0])==1: if len(values[0])==2:
values.pop(0) # remove initial value values.pop(0) # remove initial value
return beamSplitter(values[0], values[5], values[6], values[7], values[8], values[1], values[2], values[3], values[4]) return beamSplitter(values[0], values[5], values[6], values[7], values[8], values[1], values[2], values[3], values[4])
else: else:
if values[0][1]=="1": if values[0][1]=="1":
values.pop(0) # remove initial value values.pop(0) # remove initial value
return beamSplitter(values[0], values[5], values[6], values[7], values[8], 1.0 - SIfloat(values[1]) - SIfloat(values[2]), values[1], values[3], values[4]) return beamSplitter(values[0], values[5], values[6],
values[7], values[8], 1.0 - SIfloat(values[1]) -
SIfloat(values[2]), values[1], values[3], values[4])
else: else:
values.pop(0) # remove initial value values.pop(0) # remove initial value
return beamSplitter(values[0], values[5], values[6], values[7], values[8], values[1], 1.0 - SIfloat(values[1]) - SIfloat(values[2]), values[3], values[4]) return beamSplitter(values[0], values[5], values[6],
values[7], values[8], values[1], 1.0 -
SIfloat(values[1]) - SIfloat(values[2]), values[3],
values[4])
def getFinesseText(self): def getFinesseText(self):
rtn = [] rtn = []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment