Skip to content

Commit

Permalink
Refactored code
Browse files Browse the repository at this point in the history
  • Loading branch information
ricnogfer committed Mar 17, 2023
1 parent 274f287 commit c4bc36e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypsatopo.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"BIDIRECTIONAL_LINK": " \"%s (bus)\" -> \"%s (bus)\" [label = \"%s\", tooltip = \"Carrier: %s\nEfficiency: 1.00\", style = \"setlinewidth(%.1f)\", color = \"%s\", arrowhead = \"vee\", arrowtail = \"vee\", dir = \"both\"]"
}
NETWORK_NAME = "My Network"
FILE_FORMAT = "svg"
FILE_FORMAT = "svg" # possible values are: "svg", "png", "jpg", "gif" and "ps"
FILE_NAME = "topography.%s" % FILE_FORMAT
RANK_DIRECTION = "TB" # possible values are: "TB" (top to bottom), "BT" (bottom to top), "LR" (left to right) and "RL" (right to left)
RANK_SEPARATION = 1.0
Expand Down Expand Up @@ -762,7 +762,7 @@ def generate(network, focus = None, neighbourhood = 0, bus_filter = None, link_f
network.add("Load", "vehicle", bus = "transport")
network.add("Store", "battery", bus = "electricity")
network.add("Link", "ICE", bus0 = "oil", bus1 = "transport")
network.madd("Link", ["BEV"], bus0 = "electricity", bus1 = "transport")
network.add("Link", "BEV", bus0 = "electricity", bus1 = "transport")


# generate topographical representation of dummy (PyPSA) network
Expand Down

0 comments on commit c4bc36e

Please sign in to comment.