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: the fictitious load SvInjection should refer to TopologicalNode UUID #3037

Merged
merged 2 commits into from
May 29, 2024

Conversation

colinepiloquet
Copy link
Member

@colinepiloquet colinepiloquet commented May 28, 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)
  • Docs have been added / updated (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?

When writing a SvInjection for a fictitious load, the Id of the bus is used for the topological node reference, without regards to the naming strategy.

What is the new behavior (if this is a feature change)?
The topological node reference is the one of the bus and takes into account the naming strategy.

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

  • Yes
  • No

…topologicalNode with correct UUID.

Signed-off-by: Coline PILOQUET <coline.piloquet@rte-france.com>
@colinepiloquet colinepiloquet marked this pull request as ready for review May 28, 2024 15:45
@colinepiloquet
Copy link
Member Author

@zamarrenolm, @annetill, I am not 100% sure my fix is correct but I am 100% that there is a problem here.
I exported a file with the cgmes naming strategy and for the SvInjection associated to a fictitious load, the topological node reference was not a UUID.

Signed-off-by: Luma <zamarrenolm@aia.es>
@zamarrenolm
Copy link
Member

@zamarrenolm, @annetill, I am not 100% sure my fix is correct but I am 100% that there is a problem here. I exported a file with the cgmes naming strategy and for the SvInjection associated to a fictitious load, the topological node reference was not a UUID.

You are totally right, there was a missing call to the naming strategy when exporting the topological node of the SvInjection.

@zamarrenolm
Copy link
Member

Updated the unit test to verify that the exported SV file contains a proper reference to a topological node that is present in the exported TP file.

Copy link

sonarcloud bot commented May 29, 2024

@annetill annetill added the bug label May 29, 2024
@annetill annetill merged commit 17b8ca3 into main May 29, 2024
6 checks passed
@annetill annetill deleted the fix_fictitious_load_sv_injection_cgmes branch May 29, 2024 06:29
@colinepiloquet
Copy link
Member Author

Updated the unit test to verify that the exported SV file contains a proper reference to a topological node that is present in the exported TP file.

Thanks Luma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants