diff --git a/scripts/add_electricity.py b/scripts/add_electricity.py index 1fa37ef3..f5be25c6 100644 --- a/scripts/add_electricity.py +++ b/scripts/add_electricity.py @@ -118,6 +118,9 @@ def attach_load(n): opsd_load = timeseries_opsd(slice(*n.snapshots[[0,-1]].year.astype(str)), snakemake.input.opsd_load) + # Convert to naive UTC (has to be explicit since pandas 0.24) + opsd_load.index = opsd_load.index.tz_localize(None) + nuts3 = gpd.read_file(snakemake.input.nuts3_shapes).set_index('index') def normed(x): return x.divide(x.sum())