ccccc
June 14, 2022, 5:40pm
1
I am following the modeling toolkit examples, I am copy/pasting from:
https://mtk.sciml.ai/stable/tutorials/ode_modeling/
but @named is not working. Does anyone know why?
@named fol = ODESystem([ D(x) ~ (1 - x)/τ])
LoadError: UndefVarError: @named not defined
in expression starting at In[5]:1
Stacktrace:
[1] top-level scope
@ :0
[2] eval
@ .\boot.jl:373 [inlined]
[3] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base .\loading.jl:1196
What version of MTK are you using? Is it the latest version?
ccccc
June 14, 2022, 8:36pm
3
I think so. If I add ModelingToolkit again or update it, it says no changes.
That does not guarantee that you have the latest version, you might have another package installed that is holding MTK back from being updated
ccccc
June 15, 2022, 9:09am
5
Thanks - I learned about project environments and deleted and reinstalled. Pretty sure at some point there was a package that needed it to be an earlier version…