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
Adding buses to PathSim would be beneficial for pathview users and would greatly simplify and improve the pathsim-chem module development effort. It also has benefits for any future code generation push.
In there current state, the buses are defined similar to how they are built in Simulink without the arguments required for code generation. At there core, they are dictionaries.
Before the simulation begins, they are converted into arrays so that no dictionaries are accessed during the simulation. This reduces computation time, but by a small almost meaningless amount. I am open to return to using dicts passed between bus blocks if this leads to some interesting or necessary properties and features - especially in pathview.
This space can be used to discuss any concerns or to ask any questions about this update.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Adding buses to PathSim would be beneficial for pathview users and would greatly simplify and improve the pathsim-chem module development effort. It also has benefits for any future code generation push.
I already have a branch that introduces bus functionality to PathSim: https://github.com/kwmcbride/pathsim/tree/kevin/dev/bus
Some short remarks about how this works:
In there current state, the buses are defined similar to how they are built in Simulink without the arguments required for code generation. At there core, they are dictionaries.
Before the simulation begins, they are converted into arrays so that no dictionaries are accessed during the simulation. This reduces computation time, but by a small almost meaningless amount. I am open to return to using dicts passed between bus blocks if this leads to some interesting or necessary properties and features - especially in pathview.
This space can be used to discuss any concerns or to ask any questions about this update.
Beta Was this translation helpful? Give feedback.
All reactions