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

Add computation utility class #84

Merged
merged 16 commits into from
Dec 5, 2024

Conversation

jamal-khey
Copy link
Contributor

  • Added a new dependency for powsybl-security-analysis-api version 6.4.1 in pom.xml.
  • Created ComputationResultUtils class to handle violation location identification and formatting for network computations.

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?

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior (if this is a feature change)?

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:

…nResultUtils class

- Added a new dependency for powsybl-security-analysis-api version 6.4.1 in pom.xml.
- Created ComputationResultUtils class to handle violation location identification and formatting for network computations.

Signed-off-by: jamal-khey <myjamal89@gmail.com>
…introduce ComputationUtilTest class

- Created ComputationUtilTest class to implement unit tests for ComputationResultUtils, covering various scenarios for formatting node IDs and handling violation locations.

Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: jamal-khey <myjamal89@gmail.com>
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

pom.xml Outdated
@@ -163,5 +170,11 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this dependency ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i removed this dependency

Signed-off-by: jamal-khey <myjamal89@gmail.com>
@jamal-khey jamal-khey force-pushed the jamal-khey/add-computation-result-utilities branch from 5e65c3d to 422f02e Compare December 4, 2024 10:40
jamal-khey and others added 6 commits December 4, 2024 11:46
Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: Slimane AMAR <amarsli@gm0winl104.bureau.si.interne>
@SlimaneAmar SlimaneAmar force-pushed the jamal-khey/add-computation-result-utilities branch from 10338a0 to 24eda64 Compare December 4, 2024 14:25
Signed-off-by: jamal-khey <myjamal89@gmail.com>
.setId("NGEN2")
.add();

when(busBreakerViolationLocation.getBusView(any())).thenReturn(() -> Stream.of(ngen, ngen2));
Copy link
Contributor

Choose a reason for hiding this comment

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

ngen2 is a configured bus and not a calculated bus !

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Signed-off-by: Slimane AMAR <amarsli@gm0winl104.bureau.si.interne>
@SlimaneAmar SlimaneAmar force-pushed the jamal-khey/add-computation-result-utilities branch from 57d99cd to 4833476 Compare December 5, 2024 10:16
jamal-khey and others added 3 commits December 5, 2024 11:26
Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: jamal-khey <myjamal89@gmail.com>
Signed-off-by: Slimane AMAR <amarsli@gm0winl104.bureau.si.interne>
@jamal-khey jamal-khey requested review from flo-dup and EtienneLt and removed request for flo-dup December 5, 2024 11:43
Signed-off-by: jamal-khey <myjamal89@gmail.com>
@jamal-khey jamal-khey requested a review from EtienneLt December 5, 2024 12:22
@EtienneLt EtienneLt merged commit f527047 into main Dec 5, 2024
5 checks passed
@EtienneLt EtienneLt deleted the jamal-khey/add-computation-result-utilities branch December 5, 2024 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants