From 292280375f0650b07b411bcd80cd2beb0ee41e59 Mon Sep 17 00:00:00 2001 From: Daniel Brown <ddb@star.sr.bham.ac.uk> Date: Tue, 8 Mar 2016 21:58:50 +0000 Subject: [PATCH] fixing debug print --- pykat/__init__.py | 2 +- pykat/components.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pykat/__init__.py b/pykat/__init__.py index 1147e02..d426115 100644 --- a/pykat/__init__.py +++ b/pykat/__init__.py @@ -3,7 +3,7 @@ from __future__ import division from __future__ import print_function from __future__ import unicode_literals -__version__ = "0.8.6" +__version__ = "0.8.8" # This flag is used to switch on the gui features in pkat at import time USE_GUI = False diff --git a/pykat/components.py b/pykat/components.py index f629162..c1ee209 100644 --- a/pykat/components.py +++ b/pykat/components.py @@ -1094,7 +1094,7 @@ class modulator(Component): 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") -- GitLab