Skip to content

Conversation

@colineplqt
Copy link
Member

@colineplqt colineplqt commented Nov 4, 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)

Does this PR already have an issue describing the problem?

Fixes #3608

Signed-off-by: Coline Piloquet <[email protected]>
Signed-off-by: Coline Piloquet <[email protected]>
Signed-off-by: Coline Piloquet <[email protected]>
@colineplqt colineplqt marked this pull request as ready for review November 13, 2025 08:00
@colineplqt colineplqt requested a review from rcourtier November 13, 2025 08:00
Copy link
Member Author

Choose a reason for hiding this comment

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

@rcourtier, I don't know where to put the tests, any suggestions?

# Conflicts:
#	cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/EquipmentExport.java
Signed-off-by: Coline Piloquet <[email protected]>
Signed-off-by: Coline Piloquet <[email protected]>
for (Bus b : vl.getBusBreakerView().getBuses()) {
double p = b.getFictitiousP0();
double q = b.getFictitiousQ0();
if (Math.abs(p) != 0.0 || Math.abs(q) != 0.0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe

if (p != 0.0 || q != 0.0)

for (Bus b : vl.getBusBreakerView().getBuses()) {
double p = b.getFictitiousP0();
double q = b.getFictitiousQ0();
if (Math.abs(p) != 0.0 || Math.abs(q) != 0.0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

if (p != 0.0 || q != 0.0)

for (int node : nb.getNodes()) {
double p = nb.getFictitiousP0(node);
double q = nb.getFictitiousQ0(node);
if (Math.abs(p) != 0.0 || Math.abs(q) != 0.0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe

if (p != 0.0 || q != 0.0)

for (Bus b : vl.getBusBreakerView().getBuses()) {
double p = b.getFictitiousP0();
double q = b.getFictitiousQ0();
if (Math.abs(p) != 0.0 || Math.abs(q) != 0.0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Also here

if (p != 0.0 || q != 0.0)

double p = nodeBreakerView.getFictitiousP0(node);
double q = nodeBreakerView.getFictitiousQ0(node);

if (Math.abs(p) != 0.0 || Math.abs(q) != 0.0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe

if (p != 0.0 || q != 0.0)

double p = bus.getFictitiousP0();
double q = bus.getFictitiousQ0();

if (Math.abs(p) != 0.0 || Math.abs(q) != 0.0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe

if (p != 0.0 || q != 0.0)

@sonarqubecloud
Copy link

Signed-off-by: Coline Piloquet <[email protected]>
@github-project-automation github-project-automation bot moved this from In Progress to Approved in Release 12/2025 Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Approved

Development

Successfully merging this pull request may close these issues.

CGMES: Export state estimator fictitious injections to NonConformLoad

3 participants