-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update traverse API (#362, #367, #394 and #387) #426
Update traverse API (#362, #367, #394 and #387) #426
Conversation
0dc053f
to
4beebf4
Compare
71223a1
to
c46cddb
Compare
eb5d179
to
cc96bb2
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.
I will open a pull request soon in powsybl-core that fixes few inconsistencies you have to backport too. I will put the link in the conversation
for (const Switch& sw : topo.getSwitches() | boost::adaptors::filtered(filterNotEncounteredSwitches)) { | ||
topo.removeSwitch(sw.getId()); | ||
} | ||
} |
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.
It's not totally equivalent to Java implementation, is it not simpler if the encounteredSwitches is converted to a Set of ID. Then, the filter could be simplified and the whole method would be more maintainable.
127e784
to
93426a3
Compare
93426a3
to
3243b4b
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.
Could you please backport this PR (powsybl/powsybl-core#2044)? Don't forget to update the content of the issue related to this PR to mention the PR.
32368a8
to
624c288
Compare
There is no such issue in C++, but I mentionned PR#2044 in this PR's description. |
Signed-off-by: Sébastien LAIGRE <[email protected]>
Signed-off-by: Sébastien LAIGRE <[email protected]>
Signed-off-by: Sébastien LAIGRE <[email protected]>
Signed-off-by: Sébastien LAIGRE <[email protected]>
Signed-off-by: Sébastien LAIGRE <[email protected]>
Signed-off-by: Sébastien LAIGRE <[email protected]>
Signed-off-by: Sébastien LAIGRE <[email protected]>
Signed-off-by: Sébastien LAIGRE <[email protected]>
Signed-off-by: Sébastien LAIGRE <[email protected]>
Signed-off-by: Sébastien LAIGRE <[email protected]>
624c288
to
5ba4804
Compare
Kudos, SonarCloud Quality Gate passed! |
Signed-off-by: Sébastien LAIGRE [email protected]
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)Does this PR already have an issue describing the problem ? If so, link to this issue using
'#XXX'
and skip the restCloses #362
Closes #367
Closes #383 (updated in #387)
Closes #387
Closes #388
Closes #394
Also backport powsybl/powsybl-core#2044
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change or deprecate an API? If yes, check the following:
Other information:
(if any of the questions/checkboxes don't apply, please delete them entirely)