From 4ebbd294ec47d48649ae2e3f401504e4acb0b771 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Fri, 2 Jul 2021 09:34:24 +0200 Subject: [PATCH] apply suggestions from code review --- scripts/prepare_sector_network.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index c54e2a2e..13b4751e 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -52,14 +52,12 @@ def add_lifetime_wind_solar(n): if carrier in index], 'lifetime']=costs.at[carrier_name,'lifetime'] -def create_network_topology(n, prefix): +def create_network_topology(n, prefix, connector=" -> "): """ create a network topology as the electric network, returns a pandas dataframe with bus0, bus1 and length """ - topo = pd.DataFrame(columns=["bus0", "bus1", "length"]) - connector = " -> " attrs = ["bus0", "bus1", "length"] candidates = pd.concat([n.lines[attrs],