-
Notifications
You must be signed in to change notification settings - Fork 49
Export fictitious injections in CGMES #3637
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
base: main
Are you sure you want to change the base?
Conversation
…depending on its sign Signed-off-by: Coline Piloquet <[email protected]>
Signed-off-by: Coline Piloquet <[email protected]>
Signed-off-by: Coline Piloquet <[email protected]>
Signed-off-by: Coline Piloquet <[email protected]>
There was a problem hiding this comment.
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?
Signed-off-by: Coline Piloquet <[email protected]>
# 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]>
...cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/StateVariablesExport.java
Outdated
Show resolved
Hide resolved
| 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) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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)
Signed-off-by: Coline Piloquet <[email protected]>
Signed-off-by: Coline Piloquet <[email protected]>
|
Signed-off-by: Coline Piloquet <[email protected]>



Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
Fixes #3608