Closed
Description
Consider a dummy function inside my custom package EOS:
function dummy(x::AbstractVector)
@show typeof(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?
Metadata
Metadata
Assignees
Labels
No labels