-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ches Allow to remove switches when converting
- Loading branch information
Showing
21 changed files
with
981 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@startuml | ||
|
||
(*) --> "Choose all closed switches" | ||
--> "Identify switch groups" | ||
note right: By iterating over all existing switches\nand building bags of nodes, that are\ndirectly connected via switches.If a node\n of a following switch is already in a bag,\nthen add the switch to thisswitch group. | ||
--> "Take the next switch group" | ||
--> "Identify main node" | ||
note left: By counting the occurrences of\nthis node within all nodes of\nthat switch group. If all nodes\noccur only once, take the first\none. | ||
--> "Build collapsing mapping" | ||
note left: By assigning all nodes\nof a switch group to the\nmain node. | ||
if "Last group" then | ||
-->[true] "Consider mapping when converting node models" | ||
--> "Do not convert switch models" | ||
--> (*) | ||
else | ||
-->[false] "Take the next switch group" | ||
|
||
@enduml |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# Simple config to convert all models that comprise mv and lv -- either single or connected | ||
io { | ||
input { | ||
csv = { | ||
fileEncoding = "UTF-8" | ||
fileEnding = ".csv" | ||
separator = ";" | ||
directoryHierarchy = false | ||
} | ||
} | ||
|
||
output { | ||
csv = { | ||
fileEncoding = "UTF-8" | ||
fileEnding = ".csv" | ||
separator = ";" | ||
directoryHierarchy = false | ||
} | ||
|
||
targetFolder = "convertedData/mvLvNoSwitches" | ||
compress = true | ||
} | ||
|
||
simbenchCodes = [ | ||
"1-MVLV-comm-3.403-0-no_sw", | ||
"1-MVLV-comm-3.403-1-no_sw", | ||
"1-MVLV-comm-3.403-2-no_sw", | ||
"1-MVLV-comm-4.416-0-no_sw", | ||
"1-MVLV-comm-4.416-1-no_sw", | ||
"1-MVLV-comm-4.416-2-no_sw", | ||
"1-MVLV-comm-5.401-0-no_sw", | ||
"1-MVLV-comm-5.401-1-no_sw", | ||
"1-MVLV-comm-5.401-2-no_sw", | ||
"1-MVLV-rural-1.108-0-no_sw", | ||
"1-MVLV-rural-1.108-1-no_sw", | ||
"1-MVLV-rural-1.108-2-no_sw", | ||
"1-MVLV-rural-2.107-0-no_sw", | ||
"1-MVLV-rural-2.107-1-no_sw", | ||
"1-MVLV-rural-2.107-2-no_sw", | ||
"1-MVLV-rural-4.101-0-no_sw", | ||
"1-MVLV-rural-4.101-1-no_sw", | ||
"1-MVLV-rural-4.101-2-no_sw", | ||
"1-MVLV-semiurb-3.202-0-no_sw", | ||
"1-MVLV-semiurb-3.202-1-no_sw", | ||
"1-MVLV-semiurb-3.202-2-no_sw", | ||
"1-MVLV-semiurb-4.201-0-no_sw", | ||
"1-MVLV-semiurb-4.201-1-no_sw", | ||
"1-MVLV-semiurb-4.201-2-no_sw", | ||
"1-MVLV-semiurb-5.220-0-no_sw", | ||
"1-MVLV-semiurb-5.220-1-no_sw", | ||
"1-MVLV-semiurb-5.220-2-no_sw", | ||
"1-MVLV-urban-5.303-0-no_sw", | ||
"1-MVLV-urban-5.303-1-no_sw", | ||
"1-MVLV-urban-5.303-2-no_sw", | ||
"1-MVLV-urban-6.305-0-no_sw", | ||
"1-MVLV-urban-6.305-1-no_sw", | ||
"1-MVLV-urban-6.305-2-no_sw", | ||
"1-MVLV-urban-6.309-0-no_sw", | ||
"1-MVLV-urban-6.309-1-no_sw", | ||
"1-MVLV-urban-6.309-2-no_sw", | ||
"1-LV-rural1--0-no_sw", | ||
"1-LV-rural1--1-no_sw", | ||
"1-LV-rural1--2-no_sw", | ||
"1-LV-rural2--0-no_sw", | ||
"1-LV-rural2--1-no_sw", | ||
"1-LV-rural2--2-no_sw", | ||
"1-LV-rural3--0-no_sw", | ||
"1-LV-rural3--1-no_sw", | ||
"1-LV-rural3--2-no_sw", | ||
"1-LV-semiurb4--0-no_sw", | ||
"1-LV-semiurb4--1-no_sw", | ||
"1-LV-semiurb4--2-no_sw", | ||
"1-LV-semiurb5--0-no_sw", | ||
"1-LV-semiurb5--1-no_sw", | ||
"1-LV-semiurb5--2-no_sw", | ||
"1-LV-urban6--0-no_sw", | ||
"1-LV-urban6--1-no_sw", | ||
"1-LV-urban6--2-no_sw", | ||
// "1-MV-comm--0-no_sw", | ||
"1-MV-comm--1-no_sw", | ||
"1-MV-comm--2-no_sw", | ||
"1-MV-rural--0-no_sw", | ||
"1-MV-rural--1-no_sw", | ||
"1-MV-rural--2-no_sw", | ||
"1-MV-semiurb--0-no_sw", | ||
"1-MV-semiurb--1-no_sw", | ||
"1-MV-semiurb--2-no_sw", | ||
"1-MV-urban--0-no_sw", | ||
"1-MV-urban--1-no_sw", | ||
"1-MV-urban--2-no_sw", | ||
# Causing memory issues | ||
#"1-MVLV-comm-all-0-no_sw", | ||
#"1-MVLV-comm-all-1-no_sw", | ||
#"1-MVLV-comm-all-2-no_sw", | ||
#"1-MVLV-rural-all-0-no_sw", | ||
#"1-MVLV-rural-all-1-no_sw", | ||
#"1-MVLV-rural-all-2-no_sw", | ||
#"1-MVLV-semiurb-all-0-no_sw", | ||
#"1-MVLV-semiurb-all-1-no_sw", | ||
#"1-MVLV-semiurb-all-2-no_sw", | ||
#"1-MVLV-urban-all-0-no_sw", | ||
#"1-MVLV-urban-all-1-no_sw", | ||
#"1-MVLV-urban-all-2-no_sw", | ||
] | ||
} | ||
|
||
conversion { | ||
removeSwitches = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.