Conditional branches inside @component
statements do not support multiple components
#3424
Labels
bug
Something isn't working
Expected behavior
All components declared should be read into the model
structure
field when using conditional branches.Minimal Reproducible Example
Heres a modified documentation example: https://docs.sciml.ai/ModelingToolkit/dev/basics/MTKLanguage/#Using-conditional-statements
I expect
Something with sys1 and sys_I_ADDED_THIS_ONE both present. Like:
I get
Something without the sys1 component.
Haven't been able to find a pattern in the component that gets selected.
I'm new to Julia, and macro debugging is a bit beyond me right now!
Fantastic project, happy to have a crack at adding a test for this if you'd like.
Environment
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
The text was updated successfully, but these errors were encountered: