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

CGMES fix export SV: export phase and ratio tap changer if both present #2685

Merged
merged 5 commits into from
Sep 7, 2023

Conversation

zamarrenolm
Copy link
Member

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?

If a transformer has both phase and ratio tap changer, only the tap step for the phase tap changer is exported in the SV file. The SSH file correctly contains information about both tap changers.

What is the new behavior (if this is a feature change)?
Both tap steps are exported to the SV.

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

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

Other information:

Issue reported on slack cgmes channel by Kristjan Vilgo.

@zamarrenolm zamarrenolm requested review from annetill, So-Fras and colinepiloquet and removed request for So-Fras August 29, 2023 06:06
marqueslanauja and others added 2 commits September 7, 2023 11:10
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
.endStep()
.add();

// as all the tap positions are unique we check that RTC and PTC tap positions are in the sv file
Copy link
Member

Choose a reason for hiding this comment

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

It is just a unit test but the assertion are not really clean.

Copy link
Member Author

Choose a reason for hiding this comment

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

it was the simplest option to avoid re-importing the case and checking the tap position (costly in testing time), as the change in the code was very simple and only affected the SV output, but we will implement a more clear alternative.

Signed-off-by: José Antonio Marqués <marquesja@aia.es>
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 7, 2023

Kudos, SonarCloud Quality Gate passed!    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

@annetill annetill merged commit 04f9042 into main Sep 7, 2023
@annetill annetill deleted the cgmes_fix_sv_export_tc_phase_and_ratio branch September 7, 2023 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants