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
Sebastian Steinlechner
pykat
Commits
b5044088
Commit
b5044088
authored
11 years ago
by
Andreas Freise
Browse files
Options
Downloads
Patches
Plain Diff
trying out new SIfloat.
parent
71da202e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pykat/components.py
+5
-3
5 additions, 3 deletions
pykat/components.py
with
5 additions
and
3 deletions
pykat/components.py
+
5
−
3
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
()
...
...
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