cokelaer / spectrum

Spectral Analysis in Python
http://pyspectrum.readthedocs.io
BSD 3-Clause "New" or "Revised" License
339 stars 90 forks source link

Window function input should be integer #62

Closed dr3patel closed 4 years ago

dr3patel commented 5 years ago

Issue: error dealing with rectangular windows for correlog. Source file: spectrum/src/spectrum/correlog.py Line: 112

Reason: The '2.*lag+1' which is a float output gives error for generating rectangular windows. So the window input should always be integer.

Change '2.lag+1' to '2lag+1'

Fixed line: w = Window(2*lag+1, window, **window_params)