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
ae1d5543
Commit
ae1d5543
authored
Jan 31, 2016
by
Daniel Brown
Browse files
adding in new modulator types yaw and pitch
parent
8f7f3144
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/components.py
View file @
ae1d5543
...
...
@@ -1101,8 +1101,10 @@ class modulator(Component):
def
type
(
self
):
return
self
.
__type
@
type
.
setter
def
type
(
self
,
value
):
if
value
!=
"am"
and
value
!=
"pm"
:
raise
pkex
.
BasePyKatException
(
"Modulator type must be am (amplitude modulation) or pm (phase modulation)"
)
accepted
=
[
"am"
,
"pm"
,
"yaw"
,
"pitch"
]
if
value
not
in
accepted
:
raise
pkex
.
BasePyKatException
(
"Modulator type must be: "
+
", "
.
join
(
accepted
))
self
.
__type
=
str
(
value
)
...
...
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