add_electricity.py: Add a simple load scaler (#21)
* Add simple load scaler * Add scaler to config * Update config.yaml * Update add_electricity.py
This commit is contained in:
parent
f0a0a2531e
commit
0cafe40bdd
@ -157,6 +157,9 @@ transformers:
|
|||||||
s_nom: 2000.
|
s_nom: 2000.
|
||||||
type: ''
|
type: ''
|
||||||
|
|
||||||
|
load:
|
||||||
|
scaling_factor: 1.0
|
||||||
|
|
||||||
costs:
|
costs:
|
||||||
year: 2030
|
year: 2030
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ def attach_load(n):
|
|||||||
substation_lv_i = n.buses.index[n.buses['substation_lv']]
|
substation_lv_i = n.buses.index[n.buses['substation_lv']]
|
||||||
regions = gpd.read_file(snakemake.input.regions).set_index('name').reindex(substation_lv_i)
|
regions = gpd.read_file(snakemake.input.regions).set_index('name').reindex(substation_lv_i)
|
||||||
opsd_load = timeseries_opsd(slice(*n.snapshots[[0,-1]].year.astype(str)),
|
opsd_load = timeseries_opsd(slice(*n.snapshots[[0,-1]].year.astype(str)),
|
||||||
snakemake.input.opsd_load)
|
snakemake.input.opsd_load)*snakemake.config['load']['scaling_factor']
|
||||||
|
|
||||||
# Convert to naive UTC (has to be explicit since pandas 0.24)
|
# Convert to naive UTC (has to be explicit since pandas 0.24)
|
||||||
opsd_load.index = opsd_load.index.tz_localize(None)
|
opsd_load.index = opsd_load.index.tz_localize(None)
|
||||||
|
Loading…
Reference in New Issue
Block a user