From ab8492082db7e644ec29d88c3ad3ddc5bf328c70 Mon Sep 17 00:00:00 2001 From: Sean Leavey Date: Wed, 5 Jun 2019 16:21:38 +0200 Subject: [PATCH] Convert to int --- pykat/components.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pykat/components.py b/pykat/components.py index f26ebae..1db72f2 100644 --- a/pykat/components.py +++ b/pykat/components.py @@ -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") -- GitLab