-
Notifications
You must be signed in to change notification settings - Fork 63
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
How to pass a numpy array into a Julia function? #38
Comments
Ah sorry, the package was recently rewritten and that functionality got overlooked - numpy arrays should automatically get converted to For now, on the Julia side, you can do |
Fixed on master branch - try it out with |
Does it work on the Python side? I am using I first removed the old
|
You need to do an editable install |
Thanks. I tried
but failed to install it.
|
Sorry I'm no pip expert but it looks like an error on your end. Maybe your pip is out of date? That exact same command works for me in a fresh environment. You could see what's been put into |
Now it works after updating pip. Testing with the old pip of version 20.3.1
Apparently, pip requires a setup.py to proceed. Testing with pip 21.2.4
Since there is indeed no setup.py in the repository, it seems that only the newer pip (perhaps >= 21.x.x) behaves. It deserves mentioning this requirement on pip in the doc. |
Will do thanks. |
For your information, the minimal pip version is 21.1.
|
Consider a dummy function inside my custom package EOS:
From Python, I call it as follows
and the following error occurs
According to Conversion to Julia, I expect that a numpy array is converted to a Julia array automatically. Did I miss anything?
The text was updated successfully, but these errors were encountered: