CSchoel / nolds

Nonlinear measures for dynamical systems (based on one-dimensional time series)
MIT License
255 stars 57 forks source link

Deprection of reshape #10

Closed esraa-saleh closed 5 years ago

esraa-saleh commented 6 years ago

When using the Hurst Exponent function, I got the following, numpy related warning:

FutureWarning: reshape is deprecated and will raise in a subsequent release. Please use .values.reshape(...) instead

CSchoel commented 6 years ago

It seems that this is not a numpy warning but refers to the use of a pandas object as argument for np.reshape. Nolds was not built to work with pandas objects.

However, if I am correct I should be able to fix this by using np.asarray on all input arrays, as suggested in #9.

esraa-saleh commented 5 years ago

I see . Thank you for your response ! (and also for building this project, I learned a lot through it :) )

CSchoel commented 5 years ago

Thank you for your kind words and your feedback. :smile:

Quick hint: I just released version 0.5.1 that should enable you to use pandas objects as input for nolds algorithms. Please let me know if anything still goes wrong.