Skip to content
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 per united susceptance in shunt modifications #73

Merged
merged 6 commits into from
Jun 27, 2024

Conversation

p-arvy
Copy link
Member

@p-arvy p-arvy commented Jun 27, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

What kind of change does this PR introduce?

What is the current behavior?

Two values with different units are compared when shunts are updated after OpenReac optimization.

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

Signed-off-by: p-arvy <pierre.arvy@artelys.com>
@p-arvy p-arvy changed the title Fix b unit in ShuntCompensatorNetworkOutput. Fix per united susceptance in shunt modifications Jun 27, 2024
@p-arvy p-arvy requested a review from So-Fras June 27, 2024 07:59
p-arvy and others added 4 commits June 27, 2024 09:59
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
shuntCompensator.getTerminal().getBusView().getConnectableBus().getId())) {
reconnect = true;
if (Objects.isNull(shuntCompensator)) {
modifications.add(new ShuntCompensatorModification(id, null, null));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an interest to add this modification when the shuntCompensator is null ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed no, I've left it to be isofunctional with the previous implementation. I removed it. Thanks for the comment

Copy link
Member

@So-Fras So-Fras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if there is a need to add a modification with null parameters.

Signed-off-by: p-arvy <pierre.arvy@artelys.com>
Copy link

@So-Fras So-Fras merged commit 436bd68 into main Jun 27, 2024
6 checks passed
@So-Fras So-Fras deleted the fix-b-per-unit-shunt-modification branch June 27, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants