Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get costs_year.csv instead of costs.csv #1120

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
18 changes: 3 additions & 15 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ COSTDIR = config["costs_dir"]
load_data_paths = get_load_paths_gegis("data", config)

if config["enable"].get("retrieve_cost_data", True):
COSTS = "resources/" + RDIR + "costs.csv"
COSTS = (
"resources/" + RDIR + "costs_{year}.csv".format(year=config["costs"]["year"])
)
else:
COSTS = "data/costs.csv"
ATLITE_NPROCESSES = config["atlite"].get("nprocesses", 4)
Expand Down Expand Up @@ -405,20 +407,6 @@ if config["enable"].get("retrieve_cost_data", True):
run:
move(input[0], output[0])

rule retrieve_cost_data_flexible:
input:
HTTP.remote(
f"raw.githubusercontent.com/PyPSA/technology-data/{config['costs']['version']}/outputs/costs"
+ "_{planning_horizons}.csv",
keep_local=True,
),
output:
costs=COSTDIR + "costs_{planning_horizons}.csv",
resources:
mem_mb=5000,
run:
move(input[0], output[0])


rule build_demand_profiles:
params:
Expand Down
Loading