ModelingToolkitStandardLibrary.jl icon indicating copy to clipboard operation
ModelingToolkitStandardLibrary.jl copied to clipboard

DOC: unnamed TimeVaryingFunction in tutorial

Open gdmcbain opened this issue 1 year ago • 0 comments

Working my way through the tutorial, there was a stumbling in the TimeVaryingFunction component.

Is this right?

https://github.com/SciML/ModelingToolkitStandardLibrary.jl/blob/2029edb9f99ccc0c94ade6de6d6c7378264816e2/docs/src/tutorials/input_component.md?plain=1#L25

It raises (in Julia 1.10.0)

ERROR: LoadError: UndefKeywordError: keyword argument name not assigned

If it's @named:

    @named src = TimeVaryingFunction(f)

all's well.

gdmcbain avatar Jan 25 '24 04:01 gdmcbain