-
Notifications
You must be signed in to change notification settings - Fork 3
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
Incompatibility with NumPy 2.0 #11
Comments
thank you Tobias but I'm afraid neither Alex nor me have the time to maintain this project at the moment. Alex wrote a new version of a parser library that works with the .es format https://github.com/neuromorphicsystems/event_stream |
The problem comes from the use of direct accessors on numpy structures, since they are replaced with functions in numpy 2.0. loris/source/cpp/loris_extension.cpp Line 241 in f21c819
This is only a problem in The C++ extension used by Loris is there to support .dat and .es. I think that this leaves us with two options to support numpy 2:
Which option do you prefer? |
Another (potentially more problematic) issue for numpy 2 support is that numpy 1 and numpy 2 are not binary-compatible. Whilst we can make sure that event-stream / aedat / loris can be built with both, wheels built with GitHub Actions and shipped via PyPi or Conda need to be compiled with one or the other. The user will need to use the same version of numpy at runtime to avoid issues. We could simply mark these libraries as depending on numpy 2, but this could be an issue if users need other libraries that have not been upgraded and need numpy 1 in the same project. I am tempted to continue compiling with numpy 1 (at least for another month or so). Users that need numpy 2 will need to compile from source with the sdist in the mean time. |
Hi @aMarcireau - thanks a lot for looking into this! |
For a port see #12 |
Error:
See conda-forge/loris-feedstock#8
The text was updated successfully, but these errors were encountered: