use real part at common.dumps()

This commit is contained in:
Roman Zeyde
2014-08-08 14:50:07 +03:00
parent 841208bd3f
commit 9a6ca77aa4
4 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ def loads(data):
def dumps(sym, n=1):
sym = sym.imag * scaling
sym = sym.real * scaling
sym = sym.astype('int16')
data = sym.tostring()
return data * n