Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
finesse
pykat
Commits
ab849208
Commit
ab849208
authored
Jun 05, 2019
by
Sean Leavey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert to int
parent
48c3c3c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
pykat/components.py
pykat/components.py
+1
-0
No files found.
pykat/components.py
View file @
ab849208
...
...
@@ -1493,6 +1493,7 @@ class modulator(Component):
value
=
float
(
value
)
if
not
value
.
is_integer
():
raise
pkex
.
BasePyKatException
(
"modulator order must be an integer between 1 and 6 or 's' for single sideband"
)
value
=
int
(
value
)
if
value
<=
1
and
value
>
6
:
raise
pkex
.
BasePyKatException
(
"modulator order must be between 1 and 6 or 's' for single sideband"
)
...
...
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