don't wrap the module, it's not necessary

This commit is contained in:
Jakob Ketterl 2021-07-24 22:11:41 +02:00
parent 7d7cec1ec3
commit ab99b8e476

View File

@ -1,11 +1,11 @@
from csdr.chain import Chain from csdr.chain import Chain
from pycsdr.modules import Shift, FirDecimate, Bandpass, Squelch, FractionalDecimator from pycsdr.modules import Module, Shift, FirDecimate, Bandpass, Squelch, FractionalDecimator
from abc import ABCMeta, abstractmethod from abc import ABCMeta, abstractmethod
class Demodulator(Chain, metaclass=ABCMeta): class Demodulator(Chain, metaclass=ABCMeta):
@abstractmethod @abstractmethod
def setLastDecimation(self, decimation: Chain): def setLastDecimation(self, decimation: Module):
pass pass
@ -24,7 +24,7 @@ class DemodulatorChain(Chain):
self.squelch = Squelch(5) self.squelch = Squelch(5)
if fraction != 1.0: if fraction != 1.0:
demodulator.setLastDecimation(Chain(FractionalDecimator(fraction))) demodulator.setLastDecimation(FractionalDecimator(fraction))
workers = [ workers = [
self.shift, self.shift,