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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sean Leavey
pykat
Commits
62e4bea6
Commit
62e4bea6
authored
8 years ago
by
Andreas Freise
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.aei.uni-hannover.de:finesse/pykat
parents
7624b78a
de850c0a
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
+14
-4
14 additions, 4 deletions
pykat/components.py
with
14 additions
and
4 deletions
pykat/components.py
+
14
−
4
View file @
62e4bea6
...
@@ -1290,7 +1290,7 @@ class laser(Component):
...
@@ -1290,7 +1290,7 @@ class laser(Component):
self
.
_requested_node_names
.
append
(
node
)
self
.
_requested_node_names
.
append
(
node
)
self
.
__power
=
Param
(
"
P
"
,
self
,
SIfloat
(
P
),
canFsig
=
True
,
fsig_name
=
"
amp
"
)
self
.
__power
=
Param
(
"
P
"
,
self
,
SIfloat
(
P
),
canFsig
=
True
,
fsig_name
=
"
amp
"
)
self
.
__f_offset
=
Param
(
"
f
"
,
self
,
SIfloat
(
f
)
,
canFsig
=
True
,
fsig_name
=
"
freq
"
)
self
.
__f_offset
=
Param
(
"
f
"
,
self
,
f
,
canFsig
=
True
,
fsig_name
=
"
freq
"
)
self
.
__phase
=
Param
(
"
phase
"
,
self
,
SIfloat
(
phase
),
canFsig
=
True
,
fsig_name
=
"
phase
"
)
self
.
__phase
=
Param
(
"
phase
"
,
self
,
SIfloat
(
phase
),
canFsig
=
True
,
fsig_name
=
"
phase
"
)
self
.
__noise
=
AttrParam
(
"
noise
"
,
self
,
None
)
self
.
__noise
=
AttrParam
(
"
noise
"
,
self
,
None
)
self
.
_svgItem
=
None
self
.
_svgItem
=
None
...
@@ -1305,7 +1305,11 @@ class laser(Component):
...
@@ -1305,7 +1305,11 @@ class laser(Component):
@property
@property
def
f
(
self
):
return
self
.
__f_offset
def
f
(
self
):
return
self
.
__f_offset
@f.setter
@f.setter
def
f
(
self
,
value
):
self
.
__f_offset
.
value
=
float
(
value
)
def
f
(
self
,
value
):
try
:
self
.
__f_offset
.
value
=
SIfloat
(
value
)
except
:
self
.
__f_offset
.
value
=
value
@property
@property
def
phase
(
self
):
return
self
.
__phase
def
phase
(
self
):
return
self
.
__phase
...
@@ -1381,7 +1385,9 @@ class squeezer(Component):
...
@@ -1381,7 +1385,9 @@ class squeezer(Component):
self
.
_requested_node_names
.
append
(
node
)
self
.
_requested_node_names
.
append
(
node
)
self
.
__f
=
Param
(
"
f
"
,
self
,
SIfloat
(
f
),
canFsig
=
True
,
fsig_name
=
"
f
"
)
self
.
__f
=
Param
(
"
f
"
,
self
,
0
,
canFsig
=
True
,
fsig_name
=
"
f
"
)
self
.
f
=
f
self
.
__phase
=
Param
(
"
phase
"
,
self
,
SIfloat
(
phase
),
canFsig
=
True
,
fsig_name
=
"
phase
"
)
self
.
__phase
=
Param
(
"
phase
"
,
self
,
SIfloat
(
phase
),
canFsig
=
True
,
fsig_name
=
"
phase
"
)
self
.
__db
=
Param
(
"
db
"
,
self
,
SIfloat
(
db
),
canFsig
=
False
,
fsig_name
=
"
r
"
)
self
.
__db
=
Param
(
"
db
"
,
self
,
SIfloat
(
db
),
canFsig
=
False
,
fsig_name
=
"
r
"
)
self
.
__angle
=
Param
(
"
angle
"
,
self
,
SIfloat
(
angle
),
canFsig
=
False
,
fsig_name
=
"
angle
"
)
self
.
__angle
=
Param
(
"
angle
"
,
self
,
SIfloat
(
angle
),
canFsig
=
False
,
fsig_name
=
"
angle
"
)
...
@@ -1401,7 +1407,11 @@ class squeezer(Component):
...
@@ -1401,7 +1407,11 @@ class squeezer(Component):
@property
@property
def
f
(
self
):
return
self
.
__f
def
f
(
self
):
return
self
.
__f
@f.setter
@f.setter
def
f
(
self
,
value
):
self
.
__f
.
value
=
float
(
value
)
def
f
(
self
,
value
):
try
:
self
.
__f
.
value
=
SIfloat
(
value
)
except
:
self
.
__f
.
value
=
value
@property
@property
def
phase
(
self
):
return
self
.
__phase
def
phase
(
self
):
return
self
.
__phase
...
...
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