don't wrap the module, it's not necessary
This commit is contained in:
parent
7d7cec1ec3
commit
ab99b8e476
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user