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

Csa 25 voltage ra in crac api #775

Merged
merged 15 commits into from
Aug 3, 2023
Merged

Csa 25 voltage ra in crac api #775

merged 15 commits into from
Aug 3, 2023

Conversation

GabrielPlante
Copy link
Contributor

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • 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 ? If so, link to this issue using '#XXX' and skip the rest
User story CSA-25

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Implement voltage remedial actions in crac API

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? (What changes might users need to make in their application due to this PR?)

Other information:

(if any of the questions/checkboxes don't apply, please delete them entirely)

@snoopfab snoopfab added the PR: waiting-for-review This PR is waiting to be reviewed label Aug 1, 2023
@snoopfab snoopfab marked this pull request as ready for review August 1, 2023 13:40
@snoopfab snoopfab requested a review from MartinBelthle August 1, 2023 14:34
MartinBelthle
MartinBelthle previously approved these changes Aug 2, 2023

@Test
void testOutageException() {
OnVoltageConstraintAdder adder = remedialActionAdder.newOnVoltageConstraintUsageRule().withInstant(Instant.OUTAGE).withVoltageCnec("cnec2stateCurativeContingency1");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as previous comment, you can use OnVoltageConstraintAdder<NetworkActionAdder> adder

Copy link
Collaborator

Choose a reason for hiding this comment

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

done

if (instant.equals(Instant.PREVENTIVE)) {
owner.getCrac().addPreventiveState();
}
// TODO: when Instant.AUTO will be handled by FARAO, consider adding some states in the CRAC here.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This TODO is not relevant anymore (left-over from 2021).

Could you remove it from this file and also these ones please: OnInstantAdderImpl, OnFlowConstraintAdderImpl, OnAngleConstraintAdderImpl ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

done

Copy link
Collaborator

Choose a reason for hiding this comment

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

In this file, in the method checkOnConstraintUsageRules, could you update the doc to add OnVoltageConstraint (line 84 to 86).

Copy link
Collaborator

Choose a reason for hiding this comment

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

done

@MartinBelthle
Copy link
Collaborator

Once the comments have been resolved and the branch rebased with master, it can be merged 🙂

@MartinBelthle MartinBelthle requested review from MartinBelthle and removed request for MartinBelthle August 3, 2023 11:43
@Godelaine Godelaine merged commit d2d0e70 into master Aug 3, 2023
@pet-mit pet-mit deleted the CSA-25-VoltageRAInCracAPI branch January 8, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: waiting-for-review This PR is waiting to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants