vigoux / CALOA

CALOA project
GNU General Public License v3.0
1 stars 1 forks source link

AUTO BUG REPORT: window_length must be odd. #107

Closed CALOAReportSender closed 6 years ago

CALOAReportSender commented 6 years ago

Windows-7-6.1.7601-SP1 CPython-3.6.5

Traceback (most recent call last):

  File "C:\Users\pixel\AppData\Local\Programs\Python\Python36\lib\tkinter\__init__.py", line 1702, in __call__
    return self.func(*args)

  File "C:\Users\pixel\AppData\Local\Programs\Python\Python36\lib\tkinter\__init__.py", line 746, in callit
    func(*args)

  File "application.py", line 598, in routine_data_sender
    polDegree=5

  File "C:\Program Files (x86)\CALOA\spectro.py", line 966, in getInterpolated
    to_interpolate = savgol_filter(self.values, windowSize, polDegree)

  File "C:\Users\pixel\AppData\Local\Programs\Python\Python36\lib\site-packages\scipy\signal\_savitzky_golay.py", line 333, in savgol_filter
    coeffs = savgol_coeffs(window_length, polyorder, deriv=deriv, delta=delta)

  File "C:\Users\pixel\AppData\Local\Programs\Python\Python36\lib\site-packages\scipy\signal\_savitzky_golay.py", line 104, in savgol_coeffs
    raise ValueError("window_length must be odd.")

ValueError: window_length must be odd.