Commit 83f5980c authored by Daniel Brown's avatar Daniel Brown
Browse files

changing objects to new-style classes for proper property interaction

parent 1f6b3b37
......@@ -129,8 +129,8 @@ class katRun2D(object):
raise pkex.BasePyKatException("No output by the name {0} found".format(str(value)))
class Signals:
class fsig:
class Signals(object):
class fsig(object):
def __init__(self, param, name, amplitude, phase):
self._params = []
self.__target = param
......@@ -154,9 +154,14 @@ class Signals:
def amplitude(self): return self.__amplitude
def amplitude(self,value): self.__amplitude.value = SIfloat(value)
def phase(self): return self.__phase
def phase(self,value): self.__phase.value = SIfloat(value)
def target(self): return self.__target.fsig_name
......@@ -185,6 +190,8 @@ class Signals:
def f(self): return self.__f
def f(self,value): self.__f.value = SIfloat(value)
def __init__(self):
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