Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sean Leavey
pykat
Commits
612925f7
Commit
612925f7
authored
Aug 28, 2016
by
Daniel Brown
Browse files
Changing warning for mirror and bs to warn when R+T+L != 1
parent
3883f95c
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/components.py
View file @
612925f7
...
@@ -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
=
[]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment