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 would expect z[0] to have the same output as list(z)[0]. The latter outputs just 0. Fair enough if you want to choose a different semantics though, since z[0,:] is another reasonable choice. Regardless, the error message is confusing as it stands.
Your system
macos 13.6
python 3.11.4
julia 1.9.4
juliacall 0.9.15
JuliaPkg Status
/Users/pcrein/.pyenv/versions/3.11.4/envs/pyqsr-3.11.4/julia_env/pyjuliapkg/juliapkg.json (empty project)
Julia 1.9.4 @ /Users/pcrein/.julia/juliaup/julia-1.9.4+0.aarch64.apple.darwin14/bin/julia
The text was updated successfully, but these errors were encountered:
The particular error message you're seeing is a bug. As it says, it tried to throw a different (better) error, but that failed for some reason so it threw this generic message instead. I can look into why.
However its correct that z[0] is disallowed for matrices - there is no standard convention for what that should mean (Julia and numpy return very different things) so this package defines neither.
You can wrap the array with numpy.asarray(z) if you'd like to use numpy's behaviour.
Affects: JuliaCall
Describe the bug
results in the stack trace
I would expect
z[0]
to have the same output aslist(z)[0]
. The latter outputs just0
. Fair enough if you want to choose a different semantics though, sincez[0,:]
is another reasonable choice. Regardless, the error message is confusing as it stands.Your system
JuliaPkg Status
/Users/pcrein/.pyenv/versions/3.11.4/envs/pyqsr-3.11.4/julia_env/pyjuliapkg/juliapkg.json (empty project)
Julia 1.9.4 @ /Users/pcrein/.julia/juliaup/julia-1.9.4+0.aarch64.apple.darwin14/bin/julia
The text was updated successfully, but these errors were encountered: