use snakemake.params
This commit is contained in:
parent
0bdf90280b
commit
c017211700
@ -1027,6 +1027,7 @@ rule prepare_sector_network:
|
|||||||
RDIR=RDIR,
|
RDIR=RDIR,
|
||||||
heat_pump_sources=config_provider("sector", "heat_pump_sources"),
|
heat_pump_sources=config_provider("sector", "heat_pump_sources"),
|
||||||
heat_systems=config_provider("sector", "heat_systems"),
|
heat_systems=config_provider("sector", "heat_systems"),
|
||||||
|
energy_totals_year=config_provider("energy", "energy_totals_year"),
|
||||||
input:
|
input:
|
||||||
unpack(input_profile_offwind),
|
unpack(input_profile_offwind),
|
||||||
**rules.cluster_gas_network.output,
|
**rules.cluster_gas_network.output,
|
||||||
|
@ -4378,11 +4378,9 @@ if __name__ == "__main__":
|
|||||||
)
|
)
|
||||||
pop_weighted_energy_totals.update(pop_weighted_heat_totals)
|
pop_weighted_energy_totals.update(pop_weighted_heat_totals)
|
||||||
|
|
||||||
heating_efficiencies = (
|
fn = snakemake.input.heating_efficiencies
|
||||||
(pd.read_csv(snakemake.input.heating_efficiencies, index_col=[0, 1]))
|
year = int(snakemake.params["energy_totals_year"])
|
||||||
.swaplevel()
|
heating_efficiencies = pd.read_csv(fn, index_col=[1, 0]).loc[year]
|
||||||
.loc[int(snakemake.config["energy"]["energy_totals_year"])]
|
|
||||||
)
|
|
||||||
|
|
||||||
patch_electricity_network(n)
|
patch_electricity_network(n)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user