don't use global configuration

This commit is contained in:
Roman Zeyde
2014-11-09 12:14:54 +02:00
parent c8f5924c12
commit ceb826728a
15 changed files with 326 additions and 300 deletions

View File

@@ -28,11 +28,9 @@ def loads(data):
return x
def dumps(sym, n=1):
def dumps(sym):
sym = sym.real * scaling
sym = sym.astype('int16')
data = sym.tostring()
return data * n
return sym.astype('int16').tostring()
def iterate(data, size, func=None, truncate=True, enumerate=False):