Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pykat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sean Leavey
pykat
Commits
f1fe4b72
There was a problem fetching the pipeline summary.
Commit
f1fe4b72
authored
8 years ago
by
Sean Leavey
Browse files
Options
Downloads
Patches
Plain Diff
Added check to make sure R, T and L add up to 1 for mirrors and beam splitters
parent
b5e1105d
Branches
master
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pykat/components.py
+4
-0
4 additions, 0 deletions
pykat/components.py
with
4 additions
and
0 deletions
pykat/components.py
+
4
−
0
View file @
f1fe4b72
...
...
@@ -340,6 +340,10 @@ class AbstractMirrorComponent(Component):
if
T
is
not
None
:
self
.
T
.
value
=
T
if
L
is
not
None
:
self
.
L
.
value
=
L
# check energy conservation
if
self
.
R
.
value
+
self
.
T
.
value
+
self
.
L
.
value
!=
1
:
raise
pkex
.
BasePyKatException
(
"
The specified R, T and L values (%f, %f and %f) violate energy conservation
"
%
(
self
.
R
.
value
,
self
.
T
.
value
,
self
.
L
.
value
))
@property
def
z
(
self
):
return
self
.
__z
@property
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment