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 raoResult.isSecure(ANGLE) and raoResult.isSecure(VOLTAGE) #1099

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

pet-mit
Copy link
Collaborator

@pet-mit pet-mit commented Jul 30, 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)

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

When RaoResultWithAngleMonitoring is called with isSecure(ANGLE), it returns false if FLOW is unsecure, even though ANGLE is secure. This is due to the fact that it calls the underlying flowRaoResult.isSecure(physicalParams) with physicalParams being empty, which misbehaves.
Same thing happens for voltage monitoring.

What is the new behavior (if this is a feature change)?
The issue has been fixed by not calling the underlying raoResult.isSecure if physicalParams is empty

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

  • Yes
  • No

@pet-mit pet-mit added bug Something isn't working PR: waiting-for-review This PR is waiting to be reviewed next-release This issue or pull request should be resolved before next release labels Jul 30, 2024
@pet-mit pet-mit requested review from bqth29 and kahyami July 30, 2024 13:44
@pet-mit pet-mit merged commit 25c09c0 into main Aug 1, 2024
10 checks passed
@Godelaine Godelaine deleted the issecure_fix branch December 10, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working next-release This issue or pull request should be resolved before next release PR: waiting-for-review This PR is waiting to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants