-
Notifications
You must be signed in to change notification settings - Fork 8
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
Refactor separation of post contingency calculations in Woodbury DC Security Analysis #1125
Refactor separation of post contingency calculations in Woodbury DC Security Analysis #1125
Conversation
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.
This is much better ! Thanks. Can you remove the WIP ?
Thank you for the review. Done. |
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.
As discussed with the team I would find it easier to read if the BiConsumer postContingencyResultAdder was instead defined as a method (because here we start reading runSimulations with this thing out of the calling context.
But OK to merge since this solves the issue of duplicated code.
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Okay, thanks for the comment. I moved the BiConsumer |
Quality Gate passedIssues Measures |
…ecurity Analysis (#1125) Signed-off-by: p-arvy <pierre.arvy@artelys.com> Signed-off-by: Didier Vidal <didier.vidal_externe@rte-france.com>
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?
The distinction between post contingency result computation is refactored in Woodbury DC Security Analysis.
What is the current behavior?
In current behavior, code is duplicated. The only difference between the two calculations is the method used to calculate post contingency states (conditionned by post contingency connectivity result).
What is the new behavior (if this is a feature change)?
The code is mutualized.
Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
Other information: