I don't understand why signal.deconvolve is not giving me my original data.
from scipy import signal
Filtered = signal.convolve(data,thefilter)
originaldf,remainder = signal.deconvolve(Filtered,thefilter)
When I plot deconvolved variable (originaldf), I get this error:
index 0 is out of bounds for axis 0 with size 0
Size of my data is 1000, size of filter is 273, so filter is shorter than data, so I'm not sure what's wrong.
Also, looking at the question posted here: Understanding scipy deconvolve
it seems they are not able to retrieve their original signal because deconvolve changes the length of the signal by shortening it. Would I have to do that too to get the original signal back?
Any help would be appreciated. Thanks.
question from:
https://stackoverflow.com/questions/65946278/how-to-deconvolve-two-signals 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…