[SLD] Represent nodes/buses fictitious injections#794
Conversation
ff1d577 to
d71e8c2
Compare
d71e8c2 to
dbde9dd
Compare
fac6c88 to
c5a66e3
Compare
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com> test remove debugSvgFiles Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com> review sonar Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
c5a66e3 to
12faf78
Compare
adbbb54 to
b253fa5
Compare
| .map(bus -> new BusLegendInfo(bus.getId(), List.of( | ||
| new BusLegendInfo.Caption(valueFormatter.formatVoltage(bus.getV(), "kV"), "v"), | ||
| new BusLegendInfo.Caption(valueFormatter.formatAngleInDegrees(bus.getAngle()), "angle"), | ||
| new BusLegendInfo.Caption(valueFormatter.formatPower(bus.getFictitiousP0(), withDefaultUnit(svgParameters.getActivePowerUnit(), "MW")), "fictitiousP0"), | ||
| new BusLegendInfo.Caption(valueFormatter.formatPower(bus.getFictitiousQ0(), withDefaultUnit(svgParameters.getReactivePowerUnit(), "MVar")), "fictitiousQ0") | ||
| ))) | ||
| .toList(); |
There was a problem hiding this comment.
| .map(bus -> new BusLegendInfo(bus.getId(), List.of( | |
| new BusLegendInfo.Caption(valueFormatter.formatVoltage(bus.getV(), "kV"), "v"), | |
| new BusLegendInfo.Caption(valueFormatter.formatAngleInDegrees(bus.getAngle()), "angle"), | |
| new BusLegendInfo.Caption(valueFormatter.formatPower(bus.getFictitiousP0(), withDefaultUnit(svgParameters.getActivePowerUnit(), "MW")), "fictitiousP0"), | |
| new BusLegendInfo.Caption(valueFormatter.formatPower(bus.getFictitiousQ0(), withDefaultUnit(svgParameters.getReactivePowerUnit(), "MVar")), "fictitiousQ0") | |
| ))) | |
| .toList(); | |
| .map(bus -> new BusLegendInfo(bus.getId(), List.of( | |
| new BusLegendInfo.Caption(valueFormatter.formatVoltage(bus.getV(), "kV"), "v"), | |
| new BusLegendInfo.Caption(valueFormatter.formatAngleInDegrees(bus.getAngle()), "angle"), | |
| new BusLegendInfo.Caption(valueFormatter.formatPower(bus.getFictitiousP0(), | |
| withDefaultUnit(svgParameters.getActivePowerUnit(), "MW")), "fictitiousP0"), | |
| new BusLegendInfo.Caption(valueFormatter.formatPower(bus.getFictitiousQ0(), | |
| withDefaultUnit(svgParameters.getReactivePowerUnit(), "MVar")), "fictitiousQ0") | |
| ))) | |
| .toList(); |
There was a problem hiding this comment.
Actually formatted with IntelliJ (using the default configuration), i had to add .editorconfig locally to adjust indentation to 4 as you suggested.
Even with the new checkstyle version (powsybl/powsybl-parent#90) the indentation i set still work, maybe we should align on a common style with an operational checkstyle rule ?
suggestion applied 🆗
There was a problem hiding this comment.
The idea is also to keep the code formatting consistent, so to not change the code that does not need to be changed.
There was a problem hiding this comment.
I agree, but code formatting can be changed mostly in cases like refactoring, in this case we can't detect easily if the formatting kept consistent or not if there is no common style, also define such common style can prevent conflicts during code reviews.
Signed-off-by: Samir Romdhani <samir.romdhani_externe@rte-france.com>
|



Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
Fixes #741
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
Other information: