Skip to content

Comments

Refactor: consumption sign adjustments#246

Open
lamoletoscar wants to merge 3 commits intopowsybl:mainfrom
lamoletoscar:refactor/consumption-sign-adjustments
Open

Refactor: consumption sign adjustments#246
lamoletoscar wants to merge 3 commits intopowsybl:mainfrom
lamoletoscar:refactor/consumption-sign-adjustments

Conversation

@lamoletoscar
Copy link

@lamoletoscar lamoletoscar commented Oct 27, 2025

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)
  • A PR or issue has been opened in all impacted repositories (if any)

What kind of change does this PR introduce?
Refactor an output and docs update.

What is the current behavior?
In the metrix-simulator output, in the results tables, the values describing preventive load shedding are positive, whereas they are negative for corrective load shedding.

What is the new behavior (if this is a feature change)?
In the output from metrix-simulator, in the results tables, the values describing preventive and corrective load shedding have the same sign (positive).

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)
The values in the R1B table are now positive. Be careful if you use them directly to change how you handle them.

Other information:
This PR modifies the metrix-simulator part. For the rest (i.e., how metrix-simulator outputs are used in the Java code), it is necessary to check whether any changes need to be made. The metrix-simulator documentation has already been updated to reflect the change introduced by this PR ("docs/simulator/io_doc.md"). Once everything else is OK, the "DOC.md" file will also need to be updated. In addition, the signs of the values in the R1B table in the files “metrix-integration/src/test/resources/result_s10” and “metrix-integration/src/test/resources/result_s12” will also need to be modified in order to perform the tests on the Java side.

Signed-off-by: lamoletoscar <lamoletoscar@proton.me>
Signed-off-by: lamoletoscar <lamoletoscar@proton.me>
@rolnico rolnico marked this pull request as draft November 7, 2025 09:22
@lamoletoscar lamoletoscar marked this pull request as ready for review November 20, 2025 13:00
@rolnico rolnico added the Breaking change API is broken label Nov 25, 2025
@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking change API is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants