DEBUG:root:maxes: [[ 2.45000000e+01 9.81730455e-03]
[ 8.37083333e+01 3.53790956e-03]] (shape=(2, 2))
DEBUG:root:mins: [[ 5.57375000e+01 -8.45244037e-03]
[ 9.39166667e+01 -1.29806584e-03]] (shape=(2, 2))
DEBUG:root:first extremum is a max; removing
DEBUG:root:now, maxes: [[ 8.37083333e+01 3.53790956e-03]]
DEBUG:root:now, mins: [[ 5.57375000e+01 -8.45244037e-03]
[ 9.39166667e+01 -1.29806584e-03]]
DEBUG:root:lphs: [ 0.00841316]
DEBUG:root:maxes: [[ 2.53166667e+01 1.46652028e-02]
[ 4.13437500e+01 3.29450799e-03]
[ 5.59416667e+01 4.56064177e-03]
[ 6.89062500e+01 -3.60411292e-03]
[ 9.37125000e+01 1.19135538e-02]] (shape=(5, 2))
DEBUG:root:mins: [[ 1.04125000e+01 -1.41097733e-02]
[ 3.46062500e+01 -3.14536301e-04]
[ 4.83875000e+01 -3.48383336e-04]
[ 6.64562500e+01 -3.81744704e-03]
[ 7.95229167e+01 -1.56693234e-02]] (shape=(5, 2))
DEBUG:root:last extremum is a max; removing
DEBUG:root:now, maxes: [[ 2.53166667e+01 1.46652028e-02]
[ 4.13437500e+01 3.29450799e-03]
[ 5.59416667e+01 4.56064177e-03]
[ 6.89062500e+01 -3.60411292e-03]]
DEBUG:root:now, mins: [[ 1.04125000e+01 -1.41097733e-02]
[ 3.46062500e+01 -3.14536301e-04]
[ 4.83875000e+01 -3.48383336e-04]
[ 6.64562500e+01 -3.81744704e-03]
[ 7.95229167e+01 -1.56693234e-02]]
DEBUG:root:lphs: [ 0.02187736 0.00362597 0.00664356 0.00613927]
DEBUG:root:maxes: [[ 5.48187500e+01 2.48311356e-03]
[ 7.54395833e+01 1.06091428e-02]] (shape=(2, 2))
DEBUG:root:mins: [[ 3.02166667e+01 -1.18989452e-02]
[ 5.67583333e+01 2.45529669e-03]] (shape=(2, 2))
DEBUG:root:last extremum is a max; removing
DEBUG:root:now, maxes: [[ 5.48187500e+01 2.48311356e-03]]
DEBUG:root:now, mins: [[ 3.02166667e+01 -1.18989452e-02]
[ 5.67583333e+01 2.45529669e-03]]
DEBUG:root:lphs: [ 0.00720494]
DEBUG:root:maxes: [[ 2.05187500e+01 3.11573764e-03]
[ 4.78770833e+01 -2.12610707e-03]
[ 7.43166667e+01 6.53065944e-03]] (shape=(3, 2))
DEBUG:root:mins: [[ 4.05270833e+01 -2.80894919e-03]
[ 5.50229167e+01 -2.53501112e-03]] (shape=(2, 2))
DEBUG:root:first extremum is a max; removing
DEBUG:root:now, maxes: [[ 4.78770833e+01 -2.12610707e-03]
[ 7.43166667e+01 6.53065944e-03]]
DEBUG:root:now, mins: [[ 4.05270833e+01 -2.80894919e-03]
[ 5.50229167e+01 -2.53501112e-03]]
DEBUG:root:last extremum is a max; removing
DEBUG:root:now, maxes: [[ 4.78770833e+01 -2.12610707e-03]]
DEBUG:root:now, mins: [[ 4.05270833e+01 -2.80894919e-03]
[ 5.50229167e+01 -2.53501112e-03]]
DEBUG:root:lphs: [ 0.00054587]
DEBUG:root:maxes: [[ 2.90937500e+01 8.05805706e-03]] (shape=(1, 2))
DEBUG:root:mins: [[ 5.61458333e+00 -5.67043117e-03]
[ 7.65625000e+01 -6.56120497e-03]] (shape=(2, 2))
DEBUG:root:lphs: [ 0.01417388]
DEBUG:root:maxes: [[ 3.16458333e+00 -2.69572976e-03]
[ 2.74604167e+01 1.11090869e-02]
[ 5.65541667e+01 2.56769152e-03]
[ 8.14625000e+01 3.88804636e-03]] (shape=(4, 2))
DEBUG:root:mins: [[ 1.09229167e+01 -4.39900792e-03]
[ 4.41000000e+01 -6.52687455e-03]
[ 7.02333333e+01 -7.77857604e-03]
[ 9.34062500e+01 3.60041060e-04]] (shape=(4, 2))
DEBUG:root:first extremum is a max; removing
DEBUG:root:now, maxes: [[ 2.74604167e+01 1.11090869e-02]
[ 5.65541667e+01 2.56769152e-03]
[ 8.14625000e+01 3.88804636e-03]]
DEBUG:root:now, mins: [[ 1.09229167e+01 -4.39900792e-03]
[ 4.41000000e+01 -6.52687455e-03]
[ 7.02333333e+01 -7.77857604e-03]
[ 9.34062500e+01 3.60041060e-04]]
DEBUG:root:lphs: [ 0.01657203 0.00972042 0.00759731]
DEBUG:root:maxes: [[ 3.26666667e+00 -1.94901310e-02]
[ 2.81750000e+01 4.79787808e-02]
[ 5.16541667e+01 8.07929192e-03]] (shape=(3, 2))
DEBUG:root:mins: [[ 1.01062500e+01 -2.40518178e-02]
[ 4.55291667e+01 4.64341214e-03]
[ 7.22750000e+01 -4.72034963e-02]] (shape=(3, 2))
DEBUG:root:first extremum is a max; removing
DEBUG:root:now, maxes: [[ 2.81750000e+01 4.79787808e-02]
[ 5.16541667e+01 8.07929192e-03]]
DEBUG:root:now, mins: [[ 1.01062500e+01 -2.40518178e-02]
[ 4.55291667e+01 4.64341214e-03]
[ 7.22750000e+01 -4.72034963e-02]]
DEBUG:root:lphs: [ 0.05768298 0.02935933]
DEBUG:root:maxes: [[ 4.03229167e+01 2.41046341e-02]
[ 7.27854167e+01 1.76577753e-02]] (shape=(2, 2))
DEBUG:root:mins: [[ 2.21520833e+01 -5.46065522e-02]
[ 6.08416667e+01 -7.76668511e-03]
[ 9.46312500e+01 -1.90249697e-02]] (shape=(3, 2))
DEBUG:root:lphs: [ 0.05529125 0.0310536 ]
DEBUG:root:maxes: [[ 3.40958333e+01 2.85857022e-02]
[ 7.20708333e+01 4.31631519e-03]] (shape=(2, 2))
DEBUG:root:mins: [[ 1.66395833e+01 -1.50688898e-02]
[ 5.35937500e+01 -1.72569182e-02]
[ 8.96291667e+01 -5.51332347e-03]] (shape=(3, 2))
DEBUG:root:lphs: [ 0.04474861 0.01570144]
DEBUG:root:maxes: [[ 3.23604167e+01 5.76044978e-02]
[ 6.18625000e+01 -4.17658399e-03]] (shape=(2, 2))
DEBUG:root:mins: [[ 5.47166667e+01 -9.81828730e-03]
[ 7.71750000e+01 -6.63320989e-02]] (shape=(2, 2))
DEBUG:root:first extremum is a max; removing
DEBUG:root:now, maxes: [[ 6.18625000e+01 -4.17658399e-03]]
DEBUG:root:now, mins: [[ 5.47166667e+01 -9.81828730e-03]
[ 7.71750000e+01 -6.63320989e-02]]
DEBUG:root:lphs: [ 0.03389861]
DEBUG:root:maxes: [[ 28.99166667 0.48107215]
[ 60.6375 0.23051979]
[ 90.24166667 0.87019734]] (shape=(3, 2))
DEBUG:root:mins: [[ 8.47291667 -0.26654283]
[ 50.12291667 -0.12736841]
[ 76.35833333 -0.84983077]] (shape=(3, 2))
DEBUG:root:last extremum is a max; removing
DEBUG:root:now, maxes: [[ 28.99166667 0.48107215]
[ 60.6375 0.23051979]]
DEBUG:root:now, mins: [[ 8.47291667 -0.26654283]
[ 50.12291667 -0.12736841]
[ 76.35833333 -0.84983077]]
DEBUG:root:lphs: [ 0.67802778 0.71911938]
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-6-a707ef220eba> in <module>()
1 for sub in [s.subseries['sub{}'.format(i+1)] for i in range(len(s.subseries))]:
----> 2 sub.plot_acorr()
/Users/tdm/anaconda/lib/python2.7/site-packages/rotation-0.1-py2.7.egg/rotation/timeseries.pyc in plot_acorr(self, days, smooth, maxlag, mark_period, lookahead, fit_npeaks, tol, **kwargs)
94 **kwargs):
95
---> 96 lag, ac = self.acorr(days=days, smooth=smooth, maxlag=maxlag)
97
98 plt.plot(lag, ac, **kwargs)
/Users/tdm/anaconda/lib/python2.7/site-packages/rotation-0.1-py2.7.egg/rotation/timeseries.pyc in acorr(self, maxlag, smooth, days, recalc)
61 #logging.debug('{} nans in x'.format((np.isnan(x)).sum()))
62
---> 63 ac = acor.function(x, maxlag)
64 lag = np.arange(maxlag)
65
/Users/tdm/anaconda/lib/python2.7/site-packages/acor-1.1.1-py2.7-macosx-10.5-x86_64.egg/acor/acor.py in function(data, maxt)
55 if maxt is None:
56 maxt = len(data)
---> 57 result = np.zeros(maxt, dtype=float)
58 _acor.function(np.array(data, dtype=float), result)
59 return result / result[0]
ValueError: cannot convert float NaN to integer