Fix common.iterate()

This commit is contained in:
Roman Zeyde
2014-08-01 10:41:47 +03:00
parent ce00e94974
commit 5508ffc0d3
3 changed files with 4 additions and 7 deletions

View File

@@ -65,8 +65,7 @@ def iterate(data, size, func=None, truncate=True):
return
done = True
buf = np.array(buf)
result = func(buf) if func else buf
result = func(buf) if func else np.array(buf)
yield offset, result
offset += size