RJT1990 / pyflux

Open source time series library for Python
BSD 3-Clause "New" or "Revised" License
2.11k stars 240 forks source link

Wrong step width in array slicing #62

Closed ThomasHoppe closed 7 years ago

ThomasHoppe commented 7 years ago

Line 532 new_data = self.data_original.iloc[::-h+t] was buggy. Written this way -h+t is the step width. Resulting in "Singular Matrix" in np.linalg.inv if h is larger than 5 (in my problem).

RJT1990 commented 7 years ago

Thanks - will push out a pypi version tonight.