build_renewables: fix snakemake typo

This commit is contained in:
Fabian Neumann 2020-10-27 11:42:18 +01:00
parent 4d2f379ae1
commit 5442d541b4

View File

@ -287,7 +287,7 @@ if __name__ == '__main__':
cutout_name = config['cutout'] cutout_name = config['cutout']
if year: cutout_name = cutout_name.format(year=year) if year: cutout_name = cutout_name.format(year=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) time = pd.date_range(freq='m', **snapshots)
params = dict(years=slice(*time.year[[0, -1]]), months=slice(*time.month[[0, -1]])) params = dict(years=slice(*time.year[[0, -1]]), months=slice(*time.month[[0, -1]]))