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
0a39c61a
Commit
0a39c61a
authored
May 19, 2015
by
Daniel Brown
Browse files
adding error message if fsig param not found
parent
e262d9f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/finesse.py
View file @
0a39c61a
...
...
@@ -1044,6 +1044,7 @@ class kat(object):
raise
pkex
.
BasePyKatException
(
"'{0}' isnot a valid fsig command"
.
format
(
line
))
self
.
signals
.
f
=
freq
param
=
None
if
param_name
is
None
:
param
=
comp
.
_default_fsig
()
...
...
@@ -1052,8 +1053,10 @@ class kat(object):
if
p
.
canFsig
and
p
.
fsigName
==
param_name
:
param
=
p
break
if
param
is
None
:
raise
pkex
.
BasePyKatException
(
"Line: '{0}': {1} is not a valid fsig target for {2}"
.
format
(
line
,
param_name
,
comp
.
name
))
self
.
signals
.
apply
(
param
,
amp
,
phase
,
name
)
else
:
...
...
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