Skip to content

Commit

Permalink
fix logged name
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne LESOT <[email protected]>
  • Loading branch information
EtienneLt committed Oct 21, 2024
1 parent 0fab5a8 commit 2fe79aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public void check(Network network) throws NetworkModificationException {
modificationInfos.getRegulatingTerminalVlId().getValue());
}
checkActivePowerZeroOrBetweenMinAndMaxActivePowerGenerator(modificationInfos, generator, MODIFY_GENERATOR_ERROR, errorMessage);
checkActivePowerRegulation(modificationInfos, generator, MODIFY_GENERATOR_ERROR, errorMessage);
}

private void checkActivePowerZeroOrBetweenMinAndMaxActivePowerGenerator(GeneratorModificationInfos modificationInfos, Generator generator, NetworkModificationException.Type exceptionType, String errorMessage) {
Expand All @@ -72,15 +71,6 @@ private void checkActivePowerZeroOrBetweenMinAndMaxActivePowerGenerator(Generato
);
}

private void checkActivePowerRegulation(GeneratorModificationInfos modificationInfos, Generator generator, NetworkModificationException.Type exceptionType, String errorMessage) {
// ModificationUtils.getInstance().checkActivePowerControl(
// modificationInfos.getParticipate() != null ? modificationInfos.getParticipate().getValue() : null,
// modificationInfos.getDroop() != null ? modificationInfos.getDroop().getValue() : null,
// exceptionType,
// errorMessage
// );
}

@Override
public void apply(Network network, ReportNode subReportNode) {
Generator generator = ModificationUtils.getInstance().getGenerator(network, modificationInfos.getEquipmentId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ public ReportNode modifyActivePowerControlAttributes(ActivePowerControl<?> activ
if (subReporterSetpoints == null && !reports.isEmpty()) {
subReportNodeSetpoints2 = subReportNode.newReportNode().withMessageTemplate(SETPOINTS, SETPOINTS).add();
}
reportModifications(subReportNodeSetpoints2, reports, "activePowerRegulationModified", "Active power regulation");
reportModifications(subReportNodeSetpoints2, reports, "activePowerControlModified", "Active power control");
return subReportNodeSetpoints2;
}
return null;
Expand Down

0 comments on commit 2fe79aa

Please sign in to comment.