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

Commit

Permalink
Remove prefix from base-voltages.yml file
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 Dec 6, 2021
1 parent 166f4d1 commit 4cfbb7d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
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);
}

}
14 changes: 7 additions & 7 deletions src/main/resources/base-voltages.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
baseVoltages:
- name: "nad-vl300to500"
- name: "vl300to500"
minValue: 300
maxValue: 500
profile: "Default"
- name: "nad-vl180to300"
- name: "vl180to300"
minValue: 180
maxValue: 300
profile: "Default"
- name: "nad-vl120to180"
- name: "vl120to180"
minValue: 120
maxValue: 180
profile: "Default"
- name: "nad-vl70to120"
- name: "vl70to120"
minValue: 70
maxValue: 120
profile: "Default"
- name: "nad-vl50to70"
- name: "vl50to70"
minValue: 50
maxValue: 70
profile: "Default"
- name: "nad-vl30to50"
- name: "vl30to50"
minValue: 30
maxValue: 50
profile: "Default"
- name: "nad-vl0to30"
- name: "vl0to30"
minValue: 0
maxValue: 30
profile: "Default"
Expand Down
14 changes: 7 additions & 7 deletions src/test/resources/com/powsybl/config/test/base-voltages.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
baseVoltages:
- name: "nad-vl300to500"
- name: "vl300to500"
minValue: 300
maxValue: 500
profile: "Default"
- name: "nad-vl180to300"
- name: "vl180to300"
minValue: 180
maxValue: 300
profile: "Default"
- name: "nad-vl120to180"
- name: "vl120to180"
minValue: 120
maxValue: 180
profile: "Default"
- name: "nad-vl70to120"
- name: "vl70to120"
minValue: 70
maxValue: 120
profile: "Default"
- name: "nad-vl50to70"
- name: "vl50to70"
minValue: 50
maxValue: 70
profile: "Default"
- name: "nad-vl30to50"
- name: "vl30to50"
minValue: 30
maxValue: 50
profile: "Default"
- name: "nad-vl0to30"
- name: "vl0to30"
minValue: 0
maxValue: 30
profile: "Default"
Expand Down

0 comments on commit 4cfbb7d

Please sign in to comment.