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
Describe the bug 🐞
If you index into a result array with an idxs=[] you get the following error message:
> sol(ts, idxs=SymbolicUtils.BasicSymbolic{Real}[])
ERROR: LoadError: Indexing with parameters is deprecated. Use `getp(A, SymbolicUtils.BasicSymbolic{Real}[])` for parameter indexing.
Stacktrace:
[1] _getindex
@ C:\Users\benchung\.julia\packages\RecursiveArrayTools\VAOZn\src\vector_of_array.jl:374 [inlined]
....
This is very undesirable, since it does not accurately communicate the problem. Simply returning an empty vector would be the preferred result. The version with a literal empty array is even worse:
Describe the bug 🐞
If you index into a result array with an
idxs=[]
you get the following error message:This is very undesirable, since it does not accurately communicate the problem. Simply returning an empty vector would be the preferred result. The version with a literal empty array is even worse:
Expected behavior
Returning an empty array of results.
Minimal Reproducible Example 👇
The text was updated successfully, but these errors were encountered: