Sub plus (₊) instead of dot in the dot notation in equations displayed by ModelingToolkit

I was just wondering what was the reason for displaying the MTK equations using (for example) capacitor₊n₊v instead of capacitor.n.v (as in the RC Circuit example). Couldn’t dots be used for displaying as well (when they are used for inputs anyway)? I confess that reading the displayed equations is not particularly convenient as I occasionally have troubles to distinguish and +.

Yeah it could. I think there is an issue on this.

1 Like

It was closed
https://github.com/SciML/ModelingToolkit.jl/issues/907

1 Like

I am hesitating as for where to place it, perhaps it could be more appropriate in the Issues, but I will give it a try here.

Looking at one recent problem [Update parameters in ModelingToolkit using callbacks] here at Discourse, I noticed that the old issue that we discussed here still persist:

julia> states(sys)
3-element Vector{Any}:
 model₊y(t)
 myController₊integralError(t)
 myController₊manipulatedVariable(t)

So, was it finally decided to keep the as the separation character after the issue was closed?

Note also that in the legend in the figure https://global.discourse-cdn.com/julialang/original/3X/3/e/3e3d1d70af56d0610bd595aa51e64cd0e8eae60a.png in that post, some entries use . and some .

May I kindly attract @YingboMa 's attention to this? Many thanks.

1 Like

There’s going to be some major changes to the namespacing, and they will be happening ASAP because they are being put into the same release as the symbolic array changes (which already merged).

3 Likes