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
Sebastian Steinlechner
pykat
Commits
a8357ced
Commit
a8357ced
authored
Feb 05, 2014
by
Sean Leavey
Browse files
Adding Guoy phase support to space component
parent
0ebac484
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/components.py
View file @
a8357ced
...
...
@@ -333,7 +333,7 @@ class beamSplitter(AbstractMirrorComponent):
return
self
.
_svgItem
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
)
self
.
_requested_node_names
.
append
(
node1
)
...
...
@@ -341,6 +341,10 @@ class space(Component):
self
.
_QItem
=
None
self
.
__L
=
Param
(
"L"
,
self
,
SIfloat
(
L
))
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
def
L
(
self
):
return
self
.
__L
...
...
@@ -350,6 +354,21 @@ class space(Component):
def
n
(
self
):
return
self
.
__n
@
n
.
setter
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
def
parseFinesseText
(
text
):
...
...
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