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 @mtkmodel macro appears to assume that all equations are scalars:
ERROR: MethodError: Cannot `convert` an object of type Vector{Equation} to an object of type Equation
...
@ ModelingToolkit ~/.julia/packages/ModelingToolkit/oIgbi/src/systems/model_parsing.jl:25 [inlined]
would it be possible to let the macro instead use vcat so that a statement inside the @equations block would work no matter whether it results in a scalar or a vector?
The text was updated successfully, but these errors were encountered:
would it be possible to let the macro instead use vcat so that a statement inside the @equations block would work no matter whether it results in a scalar or a vector?
We should be careful about accidentally flattening though.
I see, yes we don't want to destroy proper "array equations". In my usecase, I tried to call a helper function which returned an array of scalar equations. For now, I just had to revert to the old way of manually calling ODESystem
The
@mtkmodel
macro appears to assume that all equations are scalars:would it be possible to let the macro instead use
vcat
so that a statement inside the@equations
block would work no matter whether it results in a scalar or a vector?The text was updated successfully, but these errors were encountered: