simplify common.iterate()

This commit is contained in:
Roman Zeyde
2014-07-12 16:18:06 +03:00
parent cb28d33908
commit b261f1b102
4 changed files with 31 additions and 29 deletions

View File

@@ -91,7 +91,7 @@ def extract_symbols(x, freq, offset=0):
Hc = exp_iwt(-freq, common.Nsym) / (0.5*common.Nsym)
func = lambda y: np.dot(Hc, y)
iterator = common.iterate(x, common.Nsym, advance=common.Nsym, func=func)
iterator = common.iterate(x, common.Nsym, func=func)
for _, symbol in iterator:
yield symbol