scipy / scipy

SciPy library main repository
https://scipy.org
BSD 3-Clause "New" or "Revised" License
12.89k stars 5.13k forks source link

Problem with 1-D hilbert transform on N-D arrays (Trac #985) #1512

Closed scipy-gitbot closed 11 years ago

scipy-gitbot commented 11 years ago

Original ticket http://projects.scipy.org/scipy/ticket/985 on 2009-08-06 by trac user rubert, assigned to unknown.

I assume the 1-D hilbert transform function in the signal module was intended to work like its Matlab equivalent. That is, if I hilbert transform an N-D array it will only do it along the zeroth dimension.

The hilbert transform was returning zeros for me when I attempted to use it on two-D arrays. This patch fixes that. The problem was with the arguments passed to ifft.

scipy-gitbot commented 11 years ago

Attachment added by trac user rubert on 2009-08-06: hilbert_fix.patch

scipy-gitbot commented 11 years ago

@josef-pkt wrote on 2010-02-03

this was fixed in 8348983 in response to a duplicate ticket of this, gh-1620

Thanks for the report and patch