diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py index 7b838725..3201d20b 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -287,7 +287,7 @@ if __name__ == '__main__': cutout_name = config['cutout'] 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) params = dict(years=slice(*time.year[[0, -1]]), months=slice(*time.month[[0, -1]]))