From 81f64423ef74a7f344b157073411aa7d15470989 Mon Sep 17 00:00:00 2001 From: mea39219 Date: Mon, 11 Nov 2024 16:09:43 +0100 Subject: [PATCH] add snapshot adaption --- 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 c7f9b8b3f..38b5492c4 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -1887,7 +1887,7 @@ def add_fuel_cell_cars(n, p_set, fuel_cell_share, temperature): suffix=" land transport fuel cell", bus=spatial.h2.nodes, carrier="land transport fuel cell", - p_set=profile, + p_set=profile.loc[n.snapshots], ) @@ -1926,7 +1926,7 @@ def add_ice_cars(n, p_set, ice_share, temperature): spatial.oil.land_transport, bus=spatial.oil.land_transport, carrier="land transport oil", - p_set=profile, + p_set=profile.loc[n.snapshots], ) n.add(