Open PhilReinhold opened 6 months ago
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