-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error computing lyap_r #53
Comments
Not sure what is happening here. Since a A few things you might want to try:
|
Using |
Can you just manually execute the following code from data = np.asarray(data, dtype=np.float64)
n = len(data)
max_tsep_factor = 0.25
f = np.fft.rfft(data, n * 2 - 1)
mf = np.fft.rfftfreq(n * 2 - 1) * f**2
mf = np.sum(mf[1:]) / np.sum(f[1:]**2) Alternatively, you can also just send me a sample dataset and the code that you use to load it and I can try to debug this on my end. This week, I actually have a bit of time to work on nolds, so I would be interested to investigate this. If this happens with sane input data, it might be an actual bug in the code for calculating |
Thanks for your help! Let me give one of the datasets, the respective yaml and the code I'm using. This is one of the datasets: This is the yaml file for the data: This is the code: The prints you asked me are these:
|
Nice, thanks. Now it all makes a lot more sense. |
Would you agree with this?
|
We are observing something similar in our code with pandas dataframe of floats. Before upgrade from 0.5.2 to 0.6.x this was not a problem. Can we hope for a proper fix in 0.6.2 soon? |
That's interesting. I wonder what change caused this issue to appear. I would have thought it should be present in both 0.5.2 and 0.6.x. 🤔 Unfortunately, my time for working on nolds is very limited right now. This particular issue should be easy to fix, but I would want to dig a bit deeper to make sure I understand what's going on and where my assumption went wrong. I'm always open to PRs, though, if you have some time to investigate this issue yourself. 😄 |
I have a time series of meteorological data. I'm trying to compute lyap_r with this code:
But I get this error:
This is the series I'm using:
I'm using numpy==1.26.4 and nolds==0.6.
How can I solve this problem?
The text was updated successfully, but these errors were encountered: