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

Fixes in branch results of security analysis #329

Merged
merged 2 commits into from
Jul 7, 2021
Merged

Conversation

sylvlecl
Copy link
Contributor

@sylvlecl sylvlecl commented Jul 6, 2021

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

#327

In addition, the value of q1 was not correctly unscaled.

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Bug

What is the current behavior? (You can also link to an open issue here)

Static variables are used for the nominal voltages of branches, which leads to using the same nominal voltage to unscale the currents of all branches of the network.
In addition, the value of q1 was not correctly unscaled.

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

Current values and q1 are correctly unscaled. Unit tests are adapted in order to go over that kind of case.

 - q1 was not correctly unscaled from per-unit
 - current unscaling was bugged, using static variables for nominal voltages

Signed-off-by: Sylvain Leclerc <sylvain.leclerc@rte-france.com>
@sylvlecl sylvlecl requested a review from flo-dup July 6, 2021 15:53
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 6, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@sylvlecl sylvlecl merged commit a766659 into master Jul 7, 2021
@sylvlecl sylvlecl deleted the fix-current-scaling branch July 7, 2021 08:34
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.

2 participants