Skip to content

Add check: One conduit per receiving port - #80

Merged
IrisvdWerf merged 2 commits into
developfrom
check-one-conduit-per-receiving-port
Nov 25, 2026
Merged

IrisvdWerf merged 2 commits into
developfrom
check-one-conduit-per-receiving-port

Conversation

@IrisvdWerf

Copy link
Copy Markdown
Collaborator

In yMMSL v0.1, check_consistent() rejected models in which a receiving port was connected by more than one conduit, but that check was lost in v0.2. This PR adds it back, because multiple conduits to one receiving port (on a component or on the model itself) are still not allowed.

@maarten-ic maarten-ic left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It's much easier to have ymmsl-python already report this rather than muscle3 failing after starting the simulation!

Just one small remark, let me know if unclear!

Comment thread ymmsl/v0_2/model.py Resolved

@maarten-ic maarten-ic left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@IrisvdWerf
IrisvdWerf merged commit 057ff86 into develop Nov 25, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants