Commit ed35d049 authored by Federico Asara's avatar Federico Asara

Waveform getType method added, used to decide wether to use SingleToneSignal or TwoToneSignal.

parent 94e2f2b2
......@@ -10,6 +10,7 @@ class Waveform(Item):
def set(self, what, how):
"""Set an attribute value. Supports Pyro4."""
self.__setattr__(what, how)
"""A waveform must provide this method.
Create a numeric array which represents the wave."""
def generate(self, nbits, frequency, samples, fsr):
......@@ -17,4 +18,7 @@ class Waveform(Item):
def __init__(self, *args, **kwargs):
Item.__init__(self, *args, **kwargs)
def getType(self):
return type(self)
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