Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Use powsybl-core default base voltages #23

Merged
merged 2 commits into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/com/powsybl/nad/svg/AbstractStyleProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public List<String> getSideEdgeStyleClasses(BranchEdge edge, BranchEdge.Side sid
}

private Optional<String> getBaseVoltageStyle(double nominalV) {
return baseVoltagesConfig.getBaseVoltageName(nominalV, baseVoltagesConfig.getDefaultProfile());
return baseVoltagesConfig.getBaseVoltageName(nominalV, baseVoltagesConfig.getDefaultProfile())
.map(bvName -> CLASSES_PREFIX + bvName);
}

}
31 changes: 0 additions & 31 deletions src/main/resources/base-voltages.yml

This file was deleted.

31 changes: 0 additions & 31 deletions src/test/resources/com/powsybl/config/test/base-voltages.yml

This file was deleted.

1 change: 0 additions & 1 deletion src/test/resources/com/powsybl/config/test/filelist.txt

This file was deleted.