Skip to content

Commit 8530d11

Browse files
measrainseykhaeru
authored andcommitted
Add comment on top of base mapping file; adjust read_csv accordingly
1 parent f3a7e11 commit 8530d11

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

message_ix_models/data/costs/technology_base_map.csv

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# The base year costs and WEO mappings are taken from the following file:
2+
# https://github.com/iiasa/message_data/blob/dev/data/model/investment_cost/doc/NAM_technology_cost_input_20200507.xlsx
13
message_technology,map_source,map_technology,base_year_reference_region_cost
24
bio_hpl,weo,igcc,275
35
bio_istig,weo,igcc,4064

message_ix_models/tools/costs/weo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def get_technology_mapping(input_module) -> pd.DataFrame:
205205
"""
206206

207207
base_file_path = package_data_path("costs", "technology_base_map.csv")
208-
raw_map_base = pd.read_csv(base_file_path)
208+
raw_map_base = pd.read_csv(base_file_path, skiprows=2)
209209

210210
if input_module == "base":
211211
return raw_map_base

0 commit comments

Comments
 (0)