Commit 33a3c83d authored by Daniel Brown's avatar Daniel Brown
Browse files

small fixes

parent 6b1a9626
......@@ -1050,7 +1050,7 @@ class modulator(Component):
self.__f = Param("f", self, SIfloat(f))
self.__midx = Param("midx", self, SIfloat(midx))
self.__phase = Param("phase", self, SIfloat(phase), canFsig=True, fsig_name="phase")
self.__order = order
self.__order = int(order)
self.type = modulation_type
self._default_fsig_param = self.__phase
......@@ -1071,13 +1071,15 @@ class modulator(Component):
def phase(self, value): self.__phase.value = SIfloat(value)
@property
def order(self): return self.__order
def order(self): return int(self.__order)
@order.setter
def order(self, value):
value = int(value)
if value <= 1 and value > 6:
raise pkex.BasePyKatException("modulator order must be between 1 and 6")
self.__order = int(value)
self.__order = value
@property
def type(self): return self.__type
......
......@@ -1224,9 +1224,9 @@ class kat(object):
traceFiles = [file for file in os.listdir(path) if file.endswith(".trace") and file.startswith(base)]
print("Found %i trace files" % len(traceFiles))
print(path)
print(traceFiles)
#print("Found %i trace files" % len(traceFiles))
#print(path)
#print(traceFiles)
if len(traceFiles) > 0:
import fileinput
......@@ -1243,7 +1243,7 @@ class kat(object):
a = line.split(':', 1)
if a[0].isdigit():
print("Found %s" % a[0])
#print("Found %s" % a[0])
values = a[1].split()
......
Markdown is supported
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