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

Contingency Load Flow parameters extension #1139

Open
wants to merge 9 commits into
base: feature/refactor-outer-loops
Choose a base branch
from

Conversation

vmouradian
Copy link
Member

@vmouradian vmouradian commented Dec 3, 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?

Creates the class needed for #1091

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:

@vmouradian vmouradian force-pushed the feature/contingency-parameters-extension branch from 09be168 to dec6e7c Compare December 3, 2024 12:33
@vmouradian vmouradian self-assigned this Dec 3, 2024
@vmouradian vmouradian requested a review from m-guibert December 3, 2024 13:37
@vmouradian vmouradian changed the title WIP: Feature : Contingency parameters extension Feature : Contingency parameters extension Dec 3, 2024
@jeandemanged jeandemanged changed the title Feature : Contingency parameters extension [WIP] Contingency parameters extension Dec 3, 2024
@vmouradian vmouradian changed the title [WIP] Contingency parameters extension Contingency parameters extension Dec 6, 2024
Copy link
Member

Choose a reason for hiding this comment

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

move to a new package com.powsybl.openloadflow.sa.extensions

Copy link
Member Author

Choose a reason for hiding this comment

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

moved in 5a6aa8d

Copy link
Member

Choose a reason for hiding this comment

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

move to a new package com.powsybl.openloadflow.sa.extensions

Copy link
Member Author

Choose a reason for hiding this comment

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

moved in 5a6aa8d

Copy link
Member

Choose a reason for hiding this comment

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

move the new tests to subpackage com.powsybl.openloadflow.sa.extensions

Copy link
Member Author

Choose a reason for hiding this comment

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

moved in 5a6aa8d

Copy link
Member

Choose a reason for hiding this comment

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

not sure this class is really useful, just put this code inside the test, also the naming is confusing, JsonSerializer is generic but we can see it is tailored to ContingencyJsonModule. Have a look how it is done in ContingencyJsonTest in powsybl-core.

Copy link
Member Author

Choose a reason for hiding this comment

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

moved in 5a6aa8d

@jeandemanged jeandemanged changed the title Contingency parameters extension Contingency Load Flow parameters extension Dec 16, 2024
@vmouradian vmouradian force-pushed the feature/contingency-parameters-extension branch from d47e484 to 69fe35c Compare December 18, 2024 15:14
@vmouradian vmouradian changed the base branch from main to feature/refactor-outer-loops December 18, 2024 15:20
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
@vmouradian vmouradian force-pushed the feature/contingency-parameters-extension branch from 69fe35c to 5a6aa8d Compare December 18, 2024 16:16
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>

@Override
public String getName() {
return "contingency-parameters";
Copy link
Contributor

Choose a reason for hiding this comment

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

Adapt it to the new class name

@@ -0,0 +1,60 @@
package com.powsybl.openloadflow.sa.extensions;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add copyright

import java.io.IOException;

@AutoService(ExtensionJsonSerializer.class)
public class ContingencyLoadFlowParametersJsonSerializer implements ExtensionJsonSerializer<Contingency, ContingencyLoadFlowParameters> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add docstring with the author's name


@Override
public String getExtensionName() {
return "contingency-parameters";
Copy link
Contributor

Choose a reason for hiding this comment

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

Adapt it to new class name "contingency-load-flow-parameters"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

SecurityAnalysis: Reconfigure slack distribution outer loops per contingency using an extension
3 participants