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 in fnn test #9
Comments
I'm not sure. It seems to work for me, and I get `[0. 0. 0. 0. 0. 0. 0. 0. 0.]` as the output. Could you try running the examples in the examples/fnn directory?
|
Running the example henon.py I get the same errors. Could it be that I'm running the program in Windows 11? Traceback (most recent call last):
|
Yes, I think so. The multiprocessing module seems to have issues with Windows [1]. Let me see if there's a Windows-specific fix.
[1] https://stackoverflow.com/q/20360686
|
I don't have Windows to test this, but could you try running the following two versions of your script? import numpy as np
from nolitsa import dimension
if __name__ == '__main__':
x = np.linspace(0, 10, 1000)
print(dimension.fnn(x, tau=3, dim=np.arange(1, 5))) and import numpy as np
from nolitsa import dimension
if __name__ != '__main__':
exit()
x = np.linspace(0, 10, 1000)
print(dimension.fnn(x, tau=3, dim=np.arange(1, 5))) |
The first one works! Thank you. |
That's good to know. The issues arises because Python's multiprocess module works differently on Windows and *nix. So, to use NoLiTSA functions that make use of multiprocessing on Windows, you'll have to wrap your entire code in a |
I wrote a fnn test:
Program doesn't reach print(f1), instead gives the following error after getting stuck for several seconds:
The text was updated successfully, but these errors were encountered: