mirror of
https://github.com/romanz/amodem.git
synced 2026-02-07 09:28:02 +08:00
dsp: stop Demux iteration if samples are over
This commit is contained in:
@@ -121,7 +121,10 @@ class Demux(object):
|
||||
|
||||
def next(self):
|
||||
frame = self.sampler.take(size=Nsym)
|
||||
return np.dot(self.filters, frame)
|
||||
if len(frame) == Nsym:
|
||||
return np.dot(self.filters, frame)
|
||||
else:
|
||||
raise StopIteration
|
||||
|
||||
__next__ = next
|
||||
|
||||
|
||||
Reference in New Issue
Block a user