powsybl / powsybl-open-loadflow

An open source loadflow based on PowSyBl
Mozilla Public License 2.0
48 stars 7 forks source link

Fix LimitViolation data for three-windings transformers #1076

Closed olperr1 closed 2 months ago

olperr1 commented 3 months ago

Please check if the PR fulfills these requirements

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 a LimitViolation is detected on a ThreeWindingsTransformer.Leg, it contains the following data:

For instance, if a LimitViolation is detected on the leg 2 of the ThreeWindingsTransformer "3wt", these data are respectively "3wt_leg_2" and ONE.


What is the new behavior (if this is a feature change)?

It now contains the following data:

For the previous example, the data are now respectively: "3wt" and TWO.


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

Other information:

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud