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
Without MRE, we would only be able to help you to a limited extent, and attention to the issue would be limited. to know more about MRE refer to wikipedia and stackoverflow.
using ModelingToolkit, DataInterpolations
using ModelingToolkit: t_nounits as t, D_nounits as D
interp =LinearInterpolation([12; 34; 56]', [0, 1, 2])
@variablesc(t)[1:2]
eqs = [D(c[i]) ~interp(t)[i] for i in1:2]
Describe the bug 🐞
Using matrix u in DataInterpolations as a function in MTK equation causes an error when attempting to index the interpolation function.
Expected behavior
Including index of interpolation function in MTK equation allows for indexing of interpolated point.
Minimal Reproducible Example 👇
Without MRE, we would only be able to help you to a limited extent, and attention to the issue would be limited. to know more about MRE refer to wikipedia and stackoverflow.
Error & Stacktrace⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
Additional context
It would be nice to have a single interpolation object rather than a vector of multiple, but a workaround is possible.
Workaround:
The text was updated successfully, but these errors were encountered: