Commit 612925f7 authored by Daniel Brown's avatar Daniel Brown
Browse files

Changing warning for mirror and bs to warn when R+T+L != 1

parent 3883f95c
...@@ -504,8 +504,8 @@ class mirror(AbstractMirrorComponent): ...@@ -504,8 +504,8 @@ class mirror(AbstractMirrorComponent):
return mirror(values[0], values[4], values[5], T=None, R=values[1], L=values[2], phi=values[3]) return mirror(values[0], values[4], values[5], T=None, R=values[1], L=values[2], phi=values[3])
def getFinesseText(self): def getFinesseText(self):
if self.R+self.T+self.L > 1: if self.R+self.T+self.L != 1:
raise pkex.BasePyKatException("Mirror {0} has R+T+L > 1".format(self.name)) raise pkex.BasePyKatException("Mirror {0} has R+T+L != 1".format(self.name))
rtn = [] rtn = []
...@@ -639,8 +639,8 @@ class beamSplitter(AbstractMirrorComponent): ...@@ -639,8 +639,8 @@ class beamSplitter(AbstractMirrorComponent):
values[1], None, values[2], values[3], values[4]) values[1], None, values[2], values[3], values[4])
def getFinesseText(self): def getFinesseText(self):
if self.R+self.T+self.L > 1: if self.R+self.T+self.L != 1:
raise pkex.BasePyKatException("Beamsplitter {0} has R+T+L > 1".format(self.name)) raise pkex.BasePyKatException("Beamsplitter {0} has R+T+L != 1".format(self.name))
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