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
13751d57
Commit
13751d57
authored
Jan 25, 2017
by
Daniel Brown
Browse files
fixing again...
parent
5b3483a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/finesse.py
View file @
13751d57
...
...
@@ -772,16 +772,17 @@ class Signals(object):
def
f
(
self
):
return
self
.
__f
@
f
.
setter
def
f
(
self
,
value
):
if
value
is
None
:
self
.
__f
.
value
=
None
return
v
=
SIfloat
(
value
)
if
v
is
not
None
and
v
<=
0
:
if
v
<=
0
:
raise
pkex
.
BasePyKatException
(
"Signal frequency must be greater than 0."
)
self
.
__f
.
value
=
SIfloat
(
value
)
else
:
self
.
__f
.
value
=
None
self
.
__f
.
value
=
SIfloat
(
value
)
def
__init__
(
self
,
kat
):
self
.
_unfreeze
()
self
.
_default_name
=
"fsignal"
...
...
@@ -795,7 +796,6 @@ class Signals(object):
self
.
_params
.
append
(
param
)
def
apply
(
self
,
target
,
amplitude
,
phase
,
name
=
None
):
if
target
is
None
:
raise
pkex
.
BasePyKatException
(
"No target was specified for signal to be applied"
)
...
...
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