From 4f8d583d38227b3581a61398e6a53f4bdc329371 Mon Sep 17 00:00:00 2001 From: Philipp Glaum <95913147+p-glaum@users.noreply.github.com> Date: Fri, 30 Aug 2024 15:34:06 +0200 Subject: [PATCH] prepare_sector_network: fix municipal waste transport links (#1250) --- scripts/prepare_sector_network.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 87aa90fa..0e966538 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -2595,13 +2595,15 @@ def add_biomass(n, costs): if options["municipal_solid_waste"]: n.madd( "Link", - biomass_transport.index, - bus0=biomass_transport.bus0 + " municipal solid waste", - bus1=biomass_transport.bus1 + " municipal solid waste", + biomass_transport.index + " municipal solid waste", + bus0=biomass_transport.bus0.values + " municipal solid waste", + bus1=biomass_transport.bus1.values + " municipal solid waste", p_nom_extendable=False, p_nom=5e4, length=biomass_transport.length.values, - marginal_cost=biomass_transport.costs * biomass_transport.length.values, + marginal_cost=( + biomass_transport.costs * biomass_transport.length + ).values, carrier="municipal solid waste transport", )