From 6713317bbea94156d3e7166115ab709e54530f70 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Thu, 16 Jun 2022 08:46:47 +0200 Subject: [PATCH] add_electricity: fix missing variable assignment --- scripts/add_electricity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/add_electricity.py b/scripts/add_electricity.py index f092c563..b86e8a9e 100755 --- a/scripts/add_electricity.py +++ b/scripts/add_electricity.py @@ -563,7 +563,7 @@ if __name__ == "__main__": closed="left" ) else: - snakemake.config['snapshots'] + snapshots = snakemake.config['snapshots'] n.set_snapshots(pd.date_range(freq='h', **snapshots)) Nyears = n.snapshot_weightings.objective.sum() / 8760.