-
Notifications
You must be signed in to change notification settings - Fork 64
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
Doesn't work on 1.7.0-beta2 or 1.8 #26
Comments
Hi thanks for the report. I'm actually rewriting this package from scratch, so won't be fixing bugs in the current release. The new version is on branch 'rewrite'. Not documented yet but very similar API to old version. I believe this particular bug is not present in the new version. Please try it out and let me know. |
Yes, works in 1.8, and beta2. I didn't test further, for now:
You can close the issue on my account, or keep it open a little longer so people may see it after 1.7 release in case you've not made the rewrite official. The last timing is comparable to PyCall.jl, with or without NumPyArrays.jl from @mkitti. |
Thanks, those are interesting timings. I'll look into making startup quicker once the package is more complete. It will probably always be slower than PyCall to start simply because this is a bigger package. |
After writing NumPyArrays.jl, it occurred to me that PyCall.jl might actually be too big. Why should a Py[thon]Call support NumPy arrays at all? NumPy is not the only n-dimensional array package for Python. My suggestion is to consider breaking up the package into smaller modular packages. Maybe PythonCall is the the package that depends on multiple smaller packages, with a core package called PythonCallCore or PythonCallBase. An example of this is https://github.com/JuliaDiff/ChainRulesCore.jl and https://github.com/JuliaDiff/ChainRules.jl |
In fact PythonCall does not directly support numpy. Instead it supports the buffer protocol and the array interface, which a broad class of array types support (bytes, ndarray, pandas, xarray, ...) |
This works:
[Do you have any idea what might be happening? And since works in 1.6, an issue for Julia not your package?]
But doesn't work in 1.8 nor beta2 (and likely not in beta3 either):
The text was updated successfully, but these errors were encountered: