add_electricity: fix missing variable assignment

This commit is contained in:
Fabian Neumann 2022-06-16 08:46:47 +02:00
parent ec4a45b46b
commit 6713317bbe

View File

@ -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.