-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix always existing bug in model order port sorting. #1067
Fix always existing bug in model order port sorting. #1067
Conversation
the previous layer. Updated WEST side handling to fix this and fixed typo as well and makes port model order non constraining for input ports.
This shows the model I wanted to fix and the one I broke. Apparently my bug only works for models were the edges originate from the same node. |
This does not seem to be everything. Somehow, this is different. |
I could solve this maybe by doing the inversePortProcessor after this.
eclipse-elk/elk-models#22 adds the correctness test as an example model. Maybe check, whether I should add more concrete tests for all corner cases here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix unconnected ports placement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Fixes #1065 |
Make sure that the order of incoming ports matches the order given by the previous layer.
Updated WEST side handling to fix the main issue. Moreover, there was a p1/p2 typo as well.
This also makes port model order non-constraining for input ports same as the edge model order.
If one wants to constrain the port order one should use portConstraints.