Skip to content

Commit

Permalink
Add GL CGMES post processor
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 Apr 26, 2024
1 parent a6f8125 commit db7a282
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions diagram-viewer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@
<groupId>com.powsybl</groupId>
<artifactId>powsybl-network-area-diagram</artifactId>
</dependency>
<dependency>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-cgmes-gl</artifactId>
</dependency>
<!-- __________________________________________________________________________ -->
<!-- SLD -->
<!-- __________________________________________________________________________ -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.powsybl.cgmes.conversion.CgmesImport;
import com.powsybl.commons.json.JsonUtil;
import com.powsybl.computation.local.LocalComputationManager;
import com.powsybl.diagram.viewer.nad.NetworkAreaDiagramViewController;
Expand Down Expand Up @@ -284,7 +285,7 @@ protected Task<Network> createTask() {
@Override
protected Network call() {
Properties properties = new Properties();
properties.put("iidm.import.cgmes.post-processors", "cgmesDLImport");
properties.put("iidm.import.cgmes.post-processors", List.of("cgmesDLImport", "cgmesGLImport"));
properties.put("matpower.import.ignore-base-voltage", "false");
return Network.read(file.toPath(), LocalComputationManager.getDefault(), new ImportConfig(), properties);
}
Expand Down

0 comments on commit db7a282

Please sign in to comment.