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
I have a list of tuples Tuple{Int,Int,Float64}, and I can copy the values from the julia array to a np.array of the same type on the python side, but I can't perform this copy of elements on the Julia side, because setindex! is not defined.
Indeed, you can see from the error message that the python_list has been converted to a PyIterable which is the fallback if conversion to PyArray fails. And generic iterables do not support setindex!.
It should indeed be possible to support nested types, but it's fiddly to do in general (e.g. numpy dtypes can use packed or aligned memory layout) so I haven't got around to it yet.
Minimum example (using
ipython3
).I have a list of tuples
Tuple{Int,Int,Float64}
, and I can copy the values from the julia array to anp.array
of the same type on the python side, but I can't perform this copy of elements on the Julia side, becausesetindex!
is not defined.Would it be possible to support any
isbits
type?The text was updated successfully, but these errors were encountered: