# HG changeset patch # User Daniele Nicolodi # Date 1427217040 -3600 # Node ID ff2192f4744835a1f587cb4c72e5f8c4268a1441 # Parent ebc4e1d7c32fb59c1f8b05b8f8146ec8faaf2ed6 Minor cleanup diff -r ebc4e1d7c32f -r ff2192f47448 allan.py --- a/allan.py Tue Mar 24 18:10:10 2015 +0100 +++ b/allan.py Tue Mar 24 18:10:40 2015 +0100 @@ -146,11 +146,10 @@ tau = np.asarray(tau) # partitioning - p = (tau // tau0).astype(int) + p = (tau // tau0).astype(np.int32) return _xavar(x, p) / (tau0 * tau0) def xadev(x, tau, tau0=1.0): - return np.sqrt(xavar(x, tau, tau0))