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 zero flows in result due to instant handling in SystematicSensitivityResult #1189

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

phiedw
Copy link
Collaborator

@phiedw phiedw commented Nov 4, 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)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

The SystematicSensitivityResult will return 0 if you ask it for the flow on a line at the curative instant if the computation was only done for the outage instant or auto instant. However, this is the nominal case for curative cnecs after a second preventive, since to avoid duplicating the sensitivity computations, we only run them at the outage instant for contingencies where no auto/curative actions were applied.
This resulted in flows equal to 0 in the RaoResult and exported in the json.

What is the new behavior (if this is a feature change)?
Now checks all instant prior to find the latest result available.

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

  • Yes
  • No

Other information:

Issue detected during SWE capacity calculation.

…computations

Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
@phiedw phiedw changed the title modified method in systematicSensitivityResult for second preventive … Fix zero flows in result due to instant handling in SystematicSensitivityResult Nov 4, 2024
@phiedw phiedw requested a review from pet-mit November 4, 2024 17:07
@phiedw phiedw added bug Something isn't working PR: waiting-for-review This PR is waiting to be reviewed labels Nov 4, 2024
@pet-mit pet-mit merged commit b16ec59 into main Nov 5, 2024
10 checks passed
@phiedw phiedw deleted the fix_zero_flows_in_result branch November 5, 2024 08:55
phiedw added a commit that referenced this pull request Nov 5, 2024
…computations (#1189)

Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
bqth29 pushed a commit that referenced this pull request Nov 26, 2024
…computations (#1189)

Signed-off-by: Philippe Edwards <philippe.edwards@rte-france.com>
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PR: waiting-for-review This PR is waiting to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants