Open lazlop opened 1 year ago
Hmm, I see how this can kind of be done using inline dependencies. Sorry for potentially silly issues, still figuring it out!
However, with inline dependencies it seems that optional parameters are no longer ignored, and explicitly stating require_optional_args = False
doesn't seem to change anything.
Thanks for pointing this out! My new PR should hopefully raise warnings when parameters are not provided (and do the right thing with optional arguments too)
This is also the intended use of inline_dependencies()
; it resolves those joins between templates so that you can compose templates together. This is not covered in our documentation yet, but something we should consider adding soon
For s223 models, connection points at different levels of containment that correspond to each other use the s223:mapsTo relation. The mapsTo relation goes from the connection point on the contained equipment to the connection point on the containing equipment. I'm not sure how to incorporate this relation into a template.
For example:
This could probably be pretty simply addressed by being providing the ability to refer to parameters of dependent templates.
For example: