laszukdawid / PyEMD

Python implementation of Empirical Mode Decompoisition (EMD) method
https://pyemd.readthedocs.io/
Apache License 2.0
867 stars 224 forks source link

numpy deprecation warning #56

Closed mpearmain closed 5 years ago

mpearmain commented 5 years ago

Not an Error but with with the following numpy version (numpy==1.16.4) running CEEMDAN returns a deprecation warning:

/home/mpearmain/venv/python3.6/lib/python3.6/site-packages/numpy/core/fromnumeric.py:56: FutureWarning: Series.nonzero() is deprecated and will be removed in a future version.Use Series.to_numpy().nonzero() instead

laszukdawid commented 5 years ago

Thanks for highlighting this. I'll fix this in few days.

Dawid

On Sat, Jul 6, 2019, at 00:36, Michael Pearmain wrote:

Not an Error but with with the following numpy version (numpy==1.16.4) running CEEMDAN returns a deprecation warning:

/home/mpearmain/venv/python3.6/lib/python3.6/site-packages/numpy/core/fromnumeric.py:56: FutureWarning: Series.nonzero() is deprecated and will be removed in a future version.Use Series.to_numpy().nonzero() instead

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/laszukdawid/PyEMD/issues/56?email_source=notifications&email_token=ACXNLK4CINZYQKREZAXID2LP6BDOXA5CNFSM4H6SZY5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G5UW4KQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ACXNLKYEOCX4WO2I4DI4HODP6BDOXANCNFSM4H6SZY5A.

mpearmain commented 5 years ago

sorry, i was too hasty... the problem arises from using pandas and passing a series not numpy