I have been using the denoising script quite a bit lately and there are a few videos that all have the report the same error. I have been skipping those videos, but I wanted to see if you knew what was the cause.
Here is the error message I get:
File "C:\Users\Katherine\Nehs Lab Working Folder\experiment_analysis\denoising_script.py", line 243, in <module>
meanFiltered = filtfilt(b,a,meanFrame)
File "C:\Users\Katherine\miniconda3\envs\caimanenv\lib\site-packages\scipy\signal\signaltools.py", line 3894, in filtfilt
ntaps=max(len(a), len(b)))
File "C:\Users\Katherine\miniconda3\envs\caimanenv\lib\site-packages\scipy\signal\signaltools.py", line 3945, in _validate_pad
"than padlen, which is %d." % edge)
ValueError: The length of the input vector x must be greater than padlen, which is 21.
It goes through all the portions of the script, so I can't really see where it is going wrong.
If you have any ideas about what is going wrong, let me know.
Thanks