From 706168e641536e706d1fd27cb4211fa5042c1aaf Mon Sep 17 00:00:00 2001 From: Etienne LESOT Date: Fri, 11 Oct 2024 16:43:43 +0200 Subject: [PATCH] fix Signed-off-by: Etienne LESOT --- .../TwoWindingsTransformerModification.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gridsuite/modification/server/modifications/TwoWindingsTransformerModification.java b/src/main/java/org/gridsuite/modification/server/modifications/TwoWindingsTransformerModification.java index 31e9f689a..15118ccf5 100644 --- a/src/main/java/org/gridsuite/modification/server/modifications/TwoWindingsTransformerModification.java +++ b/src/main/java/org/gridsuite/modification/server/modifications/TwoWindingsTransformerModification.java @@ -211,9 +211,14 @@ private void processPhaseTapChanger(Network network, List regulationReports = new ArrayList<>(); PhaseTapChanger.RegulationMode regulationMode = isModification && phaseTapChangerInfos.getRegulationMode() != null ? phaseTapChangerInfos.getRegulationMode().getValue() : null; + if (phaseTapChangerInfos.getRegulationMode() != null && phaseTapChangerInfos.getRegulationMode().getValue() != null) { + regulationMode = phaseTapChangerInfos.getRegulationMode().getValue(); + } - processPhaseTapRegulation(phaseTapChanger, phaseTapChangerAdder, regulationMode, isModification, - phaseTapChangerInfos.getRegulationValue(), phaseTapChangerInfos.getTargetDeadband(), regulationReports); + if (!PhaseTapChanger.RegulationMode.FIXED_TAP.equals(regulationMode)) { + processPhaseTapRegulation(phaseTapChanger, phaseTapChangerAdder, regulationMode, isModification, + phaseTapChangerInfos.getRegulationValue(), phaseTapChangerInfos.getTargetDeadband(), regulationReports); + } processRegulatingTerminal(phaseTapChangerInfos, phaseTapChanger, phaseTapChangerAdder, regulationReports, network,