-
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
Use new parameters isDcUseTransformerRatio and countriesToBalance #308
Conversation
…triesToBalance. Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
…articipating to the computation based on its substation country. Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
…o update debug-parameters.json Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
src/main/java/com/powsybl/openloadflow/network/impl/LfNetworkLoaderImpl.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
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.
In the end, that's not at all because of this PR, but these dc/ac/olf parameters classes are a bit messy. Maybe we should try to clean that up in another PR as you already suggested. By putting apart the load part and using the OpenLoadFlowParameters for it?
src/main/java/com/powsybl/openloadflow/OpenLoadFlowProvider.java
Outdated
Show resolved
Hide resolved
src/main/java/com/powsybl/openloadflow/ac/outerloop/AcLoadFlowParameters.java
Outdated
Show resolved
Hide resolved
src/main/java/com/powsybl/openloadflow/network/LfNetworkParameters.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
@flo-dup I aggree, there is a a lot of unnecessary duplications in the parameters class, we should discuss it soon. |
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
@@ -43,7 +43,7 @@ public String getElementType() { | |||
@Override | |||
public List<ParticipatingElement> getParticipatingElements(Collection<LfBus> buses) { | |||
return buses.stream() | |||
.filter(bus -> !(bus.isDisabled() || bus.isFictitious())) | |||
.filter(bus -> !(bus.isDisabled() || bus.isFictitious() || !bus.isParticipating())) |
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.
The double negative is not well understandable...
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.
The alternative is bus.isParticipating() && !bus.isDisabled() && !bus.isFictitious(), I think it is better, do you agree ?
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 :-)
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Kudos, SonarCloud Quality Gate passed! |
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Use the two new parameters available in powsybl-core isDcUseTransformerRatio and countriesToBalance. The branch for this PR is based on the branch from the PR #295 to use the compatibility work already done for 4.2.0 release candidate.
Thus it is to be rebased and merged after this PR.
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)