add_electricity: fix missing variable assignment
This commit is contained in:
parent
ec4a45b46b
commit
6713317bbe
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user