-
Notifications
You must be signed in to change notification settings - Fork 13
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 missing shape #405
Fix missing shape #405
Conversation
In |
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
vertical detection done also on UNDEFINED shapes in Subsection Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
ed2f5e2
to
bfafb77
Compare
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.
one remark to check before merging.
Smart changes!
// if more than one bus on one side, the intern cell is | ||
// - either crossover (two sections): detected later in Subsection::identifyCrossOverAndCheckOrientation | ||
// - or vertical (one section): detected later in Subsection::identifyVerticalInternCells | ||
if (candidateLegs.stream().map(LegBlock::getBusNodes).allMatch(bn -> bn.size() == 1)) { |
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.
At first sight, an UNILEG could be tagged as MAYBEFLAT if it is connected to a single bus (this case is actually very weird), maybe you should perform the test on UNILEG first
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.
Yes, indeed, good catch! But as this is unrelated to current issue and as it implies deeper changes, I'll create an issue about that.
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
389c77a
to
f228695
Compare
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Kudos, SonarCloud Quality Gate passed! |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem ?
No
What kind of change does this PR introduce?
Bug fix
What is the current behavior?
Shape missing on specific intern cells, leading to erroneous diagrams:
What is the new behavior (if this is a feature change)?
Shape added
Does this PR introduce a breaking change or deprecate an API?
No