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
finesse
pykat
Commits
b5044088
Commit
b5044088
authored
Dec 01, 2013
by
Andreas Freise
Browse files
trying out new SIfloat.
parent
71da202e
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/components.py
View file @
b5044088
...
...
@@ -7,10 +7,12 @@ Created on Mon Jan 28 11:10:01 2013
import
exceptions
import
pykat
from
pykat.node_network
import
*
from
pykat.exceptions
import
*
import
pykat.gui.resources
import
pykat.gui.graphics
from
pykat.gui.graphics
import
*
from
pykat.SIfloat
import
*
class
Component
(
object
)
:
def
__init__
(
self
,
name
):
...
...
@@ -200,8 +202,8 @@ class space(Component):
self
.
_requested_node_names
.
append
(
node1
)
self
.
_requested_node_names
.
append
(
node2
)
self
.
__L
=
float
(
L
)
self
.
__n
=
float
(
n
)
self
.
__L
=
SI
float
(
L
)
self
.
__n
=
SI
float
(
n
)
self
.
_QItem
=
None
@
property
...
...
@@ -297,7 +299,7 @@ class laser(Component):
elif
len
(
values
)
==
4
:
return
laser
(
values
[
0
],
values
[
3
],
P
=
values
[
1
],
f_offset
=
values
[
2
],
phase
=
0
)
else
:
raise
exceptions
.
RuntimeError
(
"Laser Finesse code format incorrect '{0}'"
.
format
(
text
))
raise
exceptions
.
FinesseParse
(
"Laser Finesse code format incorrect '{0}'"
.
format
(
text
))
def
getFinesseText
(
self
):
nodes
=
self
.
getNodes
()
...
...
Write
Preview
Markdown
is supported
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