From c4bc36e6279659f0cd6fb6f89611cdfa3c61378e Mon Sep 17 00:00:00 2001 From: Ricardo Date: Fri, 17 Mar 2023 13:37:28 +0100 Subject: [PATCH] Refactored code --- pypsatopo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pypsatopo.py b/pypsatopo.py index 3b6668a..d4fdeec 100644 --- a/pypsatopo.py +++ b/pypsatopo.py @@ -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 @@ -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