Skip to content

Commit

Permalink
fix post-removal equipment access
Browse files Browse the repository at this point in the history
Signed-off-by: David BRAQUART <david.braquart@rte-france.com>
  • Loading branch information
dbraquart committed Jun 15, 2023
1 parent 49a9a6a commit f5ae92a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ private static void removeShuntCompensators(Network network, HvdcConverterStatio
VoltageLevel shuntVl = shuntCompensator.getTerminal().getVoltageLevel();
// check whether the shunt compensator is connected to the same voltage level as the lcc
if (vl1 == shuntVl || vl2 == shuntVl) {
new RemoveFeederBay(shuntCompensator.getId()).apply(network, throwException, computationManager, reporter);
removedShuntCompensatorReport(reporter, shuntCompensator.getId());
String shuntId = shuntCompensator.getId();
new RemoveFeederBay(shuntId).apply(network, throwException, computationManager, reporter);
removedShuntCompensatorReport(reporter, shuntId);
LOGGER.info("Shunt compensator {} has been removed", shuntCompensator.getId());
} else {
LOGGER.warn("Shunt compensator {} has been ignored because it is not in the same voltage levels as the Lcc ({} or {})", shuntCompensator.getId(), vl1.getId(), vl2.getId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void testRemoveHvdcLineLccWithShuntCompensator() {
assertNull(network.getLccConverterStation("C1"));
assertNull(network.getShuntCompensator("C1_Filter1"));
assertNull(network.getShuntCompensator("C1_Filter2"));
assertNotNull(network.getShuntCompensator("C5_Filter5"));
assertNotNull(network.getShuntCompensator("C5_Filter5")); // not removed because it is not in the same VLs as the Lcc
}

@Test
Expand Down

0 comments on commit f5ae92a

Please sign in to comment.