add_electricity: fix snakemake typo

This commit is contained in:
Fabian Neumann 2020-10-27 13:40:34 +01:00
parent 5442d541b4
commit eed314ef05
2 changed files with 2 additions and 2 deletions

View File

@ -542,7 +542,7 @@ if __name__ == "__main__":
n = pypsa.Network(snakemake.input.base_network)
year = snakemake.wildcards.year
snapshots = dict(start=year, end=str(int(year)+1), closed="left") if year else snakememake.config['snapshots']
snapshots = dict(start=year, end=str(int(year)+1), closed="left") if year else snakemake.config['snapshots']
n.set_snapshots(pd.date_range(freq='h', **snapshots))
n.snapshot_weightings[:] *= 8760. / n.snapshot_weightings.sum()
Nyears = n.snapshot_weightings.sum() / 8760.

View File

@ -166,7 +166,7 @@ if __name__ == '__main__':
config = snakemake.config['renewable'][snakemake.wildcards.technology]
year = snakemake.wildcards.year
snapshots = dict(start=year, end=str(int(year)+1), closed="left") if year else snakememake.config['snapshots']
snapshots = dict(start=year, end=str(int(year)+1), closed="left") if year else snakemake.config['snapshots']
time = pd.date_range(freq='m', **snapshots)
params = dict(years=slice(*time.year[[0, -1]]), months=slice(*time.month[[0, -1]]))