Update functions.py
BUG: fix scaling with numpy 1.10
This commit is contained in:
parent
1036edf618
commit
37367c8ac5
@ -826,7 +826,7 @@ def rescaleData(data, scale, offset, dtype=None):
|
|||||||
#p = np.poly1d([scale, -offset*scale])
|
#p = np.poly1d([scale, -offset*scale])
|
||||||
#data = p(data).astype(dtype)
|
#data = p(data).astype(dtype)
|
||||||
d2 = data-offset
|
d2 = data-offset
|
||||||
d2 *= scale
|
d2 = np.multiply(d2, scale)
|
||||||
data = d2.astype(dtype)
|
data = d2.astype(dtype)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user