Skip to content

Display of systems not copyable #907

Closed
@baggepinnen

Description

@baggepinnen

I find that the printing of types from MTK sometimes adds friction because they are printed in a way that does not allow copy-paste of code. The example below illustrates the problem. Is there any particular reason to print the instead of a .?

julia> fb
Model fb with 13 equations
States (13):
  u(t)
  loopgain₊y(t)
  loopgain₊u(t)
  y(t)
  loopgain₊C₊u(t)
  loopgain₊C₊y(t)
  loopgain₊nonlinear_P₊u(t)
  loopgain₊nonlinear_P₊y(t)
  loopgain₊C₊x₁(t) [defaults to 0.0]
  loopgain₊C₊x₂(t) [defaults to 0.0]
  loopgain₊nonlinear_P₊P₊u(t)
  loopgain₊nonlinear_P₊P₊y(t)

Parameters (0):

julia> loopgain₊C₊u
ERROR: UndefVarError: loopgain₊C₊u not defined

julia> loopgain.C.u
loopgain₊C₊u(t)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions