You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider a dummy function inside my custom package EOS:
functiondummy(x::AbstractVector)
@showtypeof(x)
end
From Python, I call it as follows
jl.EOS.dummy(np.array([1.1, 2.3]))
and the following error occurs
TypeError: Julia: MethodError: no method matching dummy(::PythonCall.PyIterable{PythonCall.Py})
Closest candidates are:
dummy(!Matched::AbstractVector{T} where T) at /home/shuhua/Work/opt/EOS/src/EOS.jl:26
According to Conversion to Julia, I expect that a numpy array is converted to a Julia array automatically. Did I miss anything?