Skip to content

Commit

Permalink
Test CI
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
  • Loading branch information
flo-dup committed Feb 16, 2023
1 parent f4b7eac commit fc59bf7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
import com.powsybl.commons.PowsyblException;
import com.powsybl.iidm.network.*;
import com.powsybl.iidm.xml.NetworkXml;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* @author Dimitri Baudrier <dimitri.baudrier at rte-france.com>
*/
public class LoadsMerger {

private static final Logger LOGGER = LoggerFactory.getLogger(LoadsMerger.class);

private static final String MERGE_LOAD_PREFIX_ID = "merged_load_.";
private final Network initialNetwork;
private Network mergedLoadsNetwork;
Expand All @@ -19,7 +23,9 @@ public LoadsMerger(Network network) {

public Network getMergedLoadsNetwork() {
if (mergedLoadsNetwork == null) {
LOGGER.warn("About to copy network {}", initialNetwork.getId());
mergedLoadsNetwork = NetworkXml.copy(initialNetwork);
LOGGER.warn("Network {} copied", initialNetwork.getId());
}
return mergedLoadsNetwork;
}
Expand Down

0 comments on commit fc59bf7

Please sign in to comment.