Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ netcdf4 = ">=1.7.2,!=1.7.4"
networkx = ">=3.5"
numpy = ">=1.26.4"
pandas = ">=2.1"
papermill = "*"
pycountry = ">=24.6.1"
pypsa = ">=1.1.2"
python = ">=3.10"
Expand Down
2 changes: 2 additions & 0 deletions rules/preparation.smk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@


rule download_labour_data:
input:
unido_raw="data/labour/unido-raw/data.csv",
output:
merged="resources/merged_labour_inputs.csv",
threads: 1
Expand Down
2 changes: 0 additions & 2 deletions rules/trade_model.smk
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ rule model_trade:
supply_curves_interone=expand(
"resources/supply_curves/cost_year~{cost_year}/wacc~{wacc}/{region}_marginal_cost_{interone}.csv",
allow_missing=True,
cost_year=[2050],
region=config["regions"],
interone=["hbi"],
),
supply_curves_intertwo=expand(
"resources/supply_curves/cost_year~{cost_year}/wacc~{wacc}/{region}_marginal_cost_{intertwo}.csv",
allow_missing=True,
cost_year=[2050],
region=config["regions"],
intertwo=["steel"],
),
Expand Down
9 changes: 5 additions & 4 deletions workflow/notebooks/prepare-steel-demand.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
"metadata": {},
"outputs": [],
"source": [
"from _helpers_notebooks import mock_snakemake\n",
"snakemake = mock_snakemake(\n",
" \"prepare_steel_demand\",\n",
" cost_year = 2050,\n",
"if \"snakemake\" not in globals():\n",
" from _helpers_notebooks import mock_snakemake\n",
" snakemake = mock_snakemake(\n",
" \"prepare_steel_demand\",\n",
" cost_year=2050,\n",
" )"
]
},
Expand Down
1 change: 1 addition & 0 deletions workflow/scripts/download_labour_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,5 +760,6 @@ def merge_all_data(

merge_all_data(
target_year=2020,
unido_filepath=snakemake.input.unido_raw,
output_filepath=snakemake.output.merged,
)
Loading