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
The current doc example shows how to use symbolic indexing when coming from MTK, but it would also be nice if users who directly construct SciML problems had a way to attach names (be they strings / symbols / etc) to indexes in sol.u and index with them.
I see https://github.com/SciML/SymbolicIndexingInterface.jl/blob/master/test/example_test.jl -- is there a possibility of providing a simple convenience function / macro that can do all this for a user who just wants to have a mapping from a variable and/or parameter name encoded in some way to an index in sol.u for use in solution indexing and plotting?
The text was updated successfully, but these errors were encountered:
To add names to indexes in sol.u, they must be Symbols. This can be done using the SymbolCache in this library, by passing it as the sys to the relevant SciMLFunction. i.e.
If there are no e.g. parameter symbols, that field can be nothing or omitted entirely if there is no independent variable either. However, SymbolCaches without any independent variable will be assumed to be time-independent (is_time_dependent(sys) == false)
The current doc example shows how to use symbolic indexing when coming from MTK, but it would also be nice if users who directly construct SciML problems had a way to attach names (be they strings / symbols / etc) to indexes in
sol.u
and index with them.I see https://github.com/SciML/SymbolicIndexingInterface.jl/blob/master/test/example_test.jl -- is there a possibility of providing a simple convenience function / macro that can do all this for a user who just wants to have a mapping from a variable and/or parameter name encoded in some way to an index in
sol.u
for use in solution indexing and plotting?The text was updated successfully, but these errors were encountered: