Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pykat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sean Leavey
pykat
Commits
269c1d81
Commit
269c1d81
authored
9 years ago
by
Daniel Brown
Browse files
Options
Downloads
Patches
Plain Diff
fixing mod again
parent
4a2ed64e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pykat/__init__.py
+1
-1
1 addition, 1 deletion
pykat/__init__.py
pykat/components.py
+12
-4
12 additions, 4 deletions
pykat/components.py
with
13 additions
and
5 deletions
pykat/__init__.py
+
1
−
1
View file @
269c1d81
...
...
@@ -3,7 +3,7 @@ from __future__ import division
from
__future__
import
print_function
from
__future__
import
unicode_literals
__version__
=
"
0.8.
4
"
__version__
=
"
0.8.
5
"
# This flag is used to switch on the gui features in pkat at import time
USE_GUI
=
False
...
...
This diff is collapsed.
Click to expand it.
pykat/components.py
+
12
−
4
View file @
269c1d81
...
...
@@ -1088,13 +1088,21 @@ class modulator(Component):
def
phase
(
self
,
value
):
self
.
__phase
.
value
=
SIfloat
(
value
)
@property
def
order
(
self
):
return
int
(
self
.
__order
)
def
order
(
self
):
return
self
.
__order
@order.setter
def
order
(
self
,
value
):
try
:
value
=
int
(
value
)
print
(
value
)
if
value
<=
1
and
value
>
6
:
raise
pkex
.
BasePyKatException
(
"
modulator order must be between 1 and 6 or
'
s
'
for single sideband
"
)
except
ValueError
:
if
value
!=
'
s
'
or
(
isinstance
(
value
,
int
)
and
value
<=
1
and
value
>
6
):
raise
pkex
.
BasePyKatException
(
"
modulator order must be between 1 and 6 or
'
s
'
for single sideband
"
)
self
.
__
midx
.
value
=
value
self
.
__
order
=
value
@property
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment