Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
pykat
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Iterations
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
finesse
pykat
Commits
48c3c3c8
Commit
48c3c3c8
authored
Jun 05, 2019
by
Sean Leavey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix modulator (see
a49aa116
)
parent
7c08fd7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pykat/components.py
pykat/components.py
+3
-2
No files found.
pykat/components.py
View file @
48c3c3c8
...
...
@@ -1490,8 +1490,9 @@ class modulator(Component):
def
order
(
self
,
value
):
try
:
value
=
int
(
value
)
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"
)
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