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
Yeah, somehow I never finished that. However, one should be aware that iterating over a VectorArray will always return VectorArray views of lenght 1, even if the array is a ListVectorArray. This might be counter-intuitive, so an alternative might be to just raise NotImplementedError in __iter__.
FWIW, I noticed this issue when trying to plot individual VectorArrays from solve.
I don't think that the iterator returning VectorArray views of length 1 is so counter-intuitive. The result of [v for v in U] should be the same as [U[i] for i in range(len(U))].
There is already some work done in the
va_iteration
branch, modifying__getitem__
to raiseIndexError
for illegal indices.The text was updated successfully, but these errors were encountered: