From b025622edfe80ca504509e96f6126a0bb5a53583 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Fri, 3 Jun 2022 14:29:23 +0200 Subject: [PATCH] fix agriculture machinery oil load with spatial.oil.nodes --- scripts/prepare_sector_network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 418863e7..f0f60934 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -2217,8 +2217,8 @@ def add_agriculture(n, costs): if ice_share > 0: - n.add("Load", - "agriculture machinery oil", + n.madd("Load", + ["agriculture machinery oil"], bus=spatial.oil.nodes, carrier="agriculture machinery oil", p_set=ice_share * machinery_nodal_energy.sum() * 1e6 / 8760