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
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
finesse
pykat
Commits
a8357ced
Commit
a8357ced
authored
11 years ago
by
Sean Leavey
Browse files
Options
Downloads
Patches
Plain Diff
Adding Guoy phase support to space component
parent
0ebac484
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pykat/components.py
+20
-1
20 additions, 1 deletion
pykat/components.py
with
20 additions
and
1 deletion
pykat/components.py
+
20
−
1
View file @
a8357ced
...
@@ -333,7 +333,7 @@ class beamSplitter(AbstractMirrorComponent):
...
@@ -333,7 +333,7 @@ class beamSplitter(AbstractMirrorComponent):
return
self
.
_svgItem
return
self
.
_svgItem
class
space
(
Component
):
class
space
(
Component
):
def
__init__
(
self
,
name
,
node1
,
node2
,
L
=
0
,
n
=
1
):
def
__init__
(
self
,
name
,
node1
,
node2
,
L
=
0
,
n
=
1
,
g
=
0
,
gx
=
0
,
gy
=
0
):
Component
.
__init__
(
self
,
name
)
Component
.
__init__
(
self
,
name
)
self
.
_requested_node_names
.
append
(
node1
)
self
.
_requested_node_names
.
append
(
node1
)
...
@@ -342,6 +342,10 @@ class space(Component):
...
@@ -342,6 +342,10 @@ class space(Component):
self
.
__L
=
Param
(
"
L
"
,
self
,
SIfloat
(
L
))
self
.
__L
=
Param
(
"
L
"
,
self
,
SIfloat
(
L
))
self
.
__n
=
Param
(
"
n
"
,
self
,
SIfloat
(
n
))
self
.
__n
=
Param
(
"
n
"
,
self
,
SIfloat
(
n
))
self
.
__g
=
AttrParam
(
"
g
"
,
self
,
SIfloat
(
g
))
self
.
__gx
=
AttrParam
(
"
gx
"
,
self
,
SIfloat
(
gx
))
self
.
__gy
=
AttrParam
(
"
gy
"
,
self
,
SIfloat
(
gy
))
@property
@property
def
L
(
self
):
return
self
.
__L
def
L
(
self
):
return
self
.
__L
@L.setter
@L.setter
...
@@ -351,6 +355,21 @@ class space(Component):
...
@@ -351,6 +355,21 @@ class space(Component):
@n.setter
@n.setter
def
n
(
self
,
value
):
self
.
__n
.
value
=
SIfloat
(
value
)
def
n
(
self
,
value
):
self
.
__n
.
value
=
SIfloat
(
value
)
@property
def
g
(
self
):
return
self
.
__g
@g.setter
def
g
(
self
,
value
):
self
.
__g
.
value
=
SIfloat
(
value
)
@property
def
gx
(
self
):
return
self
.
__gx
@gx.setter
def
gx
(
self
,
value
):
self
.
__gx
.
value
=
SIfloat
(
value
)
@property
def
gy
(
self
):
return
self
.
__gy
@gy.setter
def
gy
(
self
,
value
):
self
.
__gy
.
value
=
SIfloat
(
value
)
@staticmethod
@staticmethod
def
parseFinesseText
(
text
):
def
parseFinesseText
(
text
):
values
=
text
.
split
(
"
"
)
values
=
text
.
split
(
"
"
)
...
...
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