Commit 13751d57 authored by Daniel Brown's avatar Daniel Brown
Browse files

fixing again...

parent 5b3483a4
......@@ -772,15 +772,16 @@ class Signals(object):
def f(self): return self.__f
def f(self,value):
if value is None:
self.__f.value = None
v = SIfloat(value)
if v is not None and v <= 0:
if v <= 0:
raise pkex.BasePyKatException("Signal frequency must be greater than 0.")
self.__f.value = SIfloat(value)
self.__f.value = None
def __init__(self, kat):
......@@ -795,7 +796,6 @@ class Signals(object):
def apply(self, target, amplitude, phase, name=None):
if target is None:
raise pkex.BasePyKatException("No target was specified for signal to be applied")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment