serge-sans-paille / pythran

Ahead of Time compiler for numeric kernels
https://pythran.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.99k stars 193 forks source link

support scipy jv? #2183

Closed nbecker closed 7 months ago

nbecker commented 7 months ago

I see in pythran/pythonic/scipy/special/jv.hpp,

But:

 pythran _patch4.py 
CRITICAL: I am in trouble. Your input file does not seem to match Pythran's constraints...
_patch4.py:11:11 error: `jv' is not a member of scipy or Pythran does not support it
----
    bfn0 = sp.jv(0, k0 * ae * sin_theta)
           ^~~~ (o_0)

Is scipy jv supported? Why the error?

serge-sans-paille commented 7 months ago

The following works just nice:

from scipy.special import jv

#pythran export je(float)
def je(x):
    return jv(1, x)

but you need scipy to be importable in your Python environment for this to work. Could that be the issue on your side?

nbecker commented 7 months ago

My mistake