biomass_transport: reduce output files

This commit is contained in:
Fabian Neumann 2021-08-09 17:53:14 +02:00
parent 3eb404ff68
commit 7ca4f04611
2 changed files with 0 additions and 5 deletions

View File

@ -188,8 +188,6 @@ if config["sector"]["biomass_transport"]:
input:
transport_cost_data=HTTP.remote("publications.jrc.ec.europa.eu/repository/bitstream/JRC98626/biomass potentials in europe_web rev.pdf", keep_local=True)
output:
supply_chain1="resources/biomass_transport_costs_supply_chain1.csv",
supply_chain2="resources/biomass_transport_costs_supply_chain2.csv",
biomass_transport_costs="resources/biomass_transport_costs.csv",
threads: 1
resources: mem_mb=1000

View File

@ -63,9 +63,6 @@ def build_biomass_transport_costs():
sc1 = get_cost_per_tkm(146, countries)
sc2 = get_cost_per_tkm(147, countries)
sc1.to_csv(snakemake.output.supply_chain1)
sc2.to_csv(snakemake.output.supply_chain2)
# take mean of both supply chains
to_concat = [sc1["EUR/km/ton"], sc2["EUR/km/ton"]]
transport_costs = pd.concat(to_concat, axis=1).mean(axis=1)