Skip to content

Commit

Permalink
The regulation terminal was not saved when isRegulating was false (#336)
Browse files Browse the repository at this point in the history
Signed-off-by: Florent MILLOT <[email protected]>
  • Loading branch information
flomillot authored Sep 27, 2023
1 parent d807f4c commit cfaa46c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ private void addPhaseTapChangersToTwoWindingsTransformer(Network network, TwoWin
phaseTapChangerInfos.getRegulatingTerminalId(),
phaseTapChangerInfos.getRegulatingTerminalType(),
phaseTapChangerInfos.getRegulatingTerminalVlId());
phaseTapChangerAdder.setRegulationTerminal(terminal);

if (phaseTapChangerInfos.isRegulating()) {
phaseTapChangerAdder.setRegulationValue(phaseTapChangerInfos.getRegulationValue())
.setTargetDeadband(phaseTapChangerInfos.getTargetDeadband() != null ? phaseTapChangerInfos.getTargetDeadband() : 0.)
.setRegulationTerminal(terminal);
.setTargetDeadband(phaseTapChangerInfos.getTargetDeadband() != null ? phaseTapChangerInfos.getTargetDeadband() : 0.);
}

phaseTapChangerAdder.setRegulating(phaseTapChangerInfos.isRegulating())
Expand Down

0 comments on commit cfaa46c

Please sign in to comment.