From 99f32c27b80ec376375fde0e392bc16f5cb02b1b Mon Sep 17 00:00:00 2001 From: Measrainsey Meng Date: Thu, 2 Nov 2023 13:51:27 +0100 Subject: [PATCH] Add comment on top of base mapping file; adjust read_csv accordingly --- message_ix_models/data/costs/technology_base_map.csv | 2 ++ message_ix_models/tools/costs/weo.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/message_ix_models/data/costs/technology_base_map.csv b/message_ix_models/data/costs/technology_base_map.csv index 617cb9c802..d938f3f57f 100644 --- a/message_ix_models/data/costs/technology_base_map.csv +++ b/message_ix_models/data/costs/technology_base_map.csv @@ -1,3 +1,5 @@ +# The base year costs and WEO mappings are taken from the following file: +# https://github.com/iiasa/message_data/blob/dev/data/model/investment_cost/doc/NAM_technology_cost_input_20200507.xlsx message_technology,map_source,map_technology,base_year_reference_region_cost bio_hpl,weo,igcc,275 bio_istig,weo,igcc,4064 diff --git a/message_ix_models/tools/costs/weo.py b/message_ix_models/tools/costs/weo.py index 781e192829..14c6a69788 100644 --- a/message_ix_models/tools/costs/weo.py +++ b/message_ix_models/tools/costs/weo.py @@ -205,7 +205,7 @@ def get_technology_mapping(input_module) -> pd.DataFrame: """ base_file_path = package_data_path("costs", "technology_base_map.csv") - raw_map_base = pd.read_csv(base_file_path) + raw_map_base = pd.read_csv(base_file_path, skiprows=2) if input_module == "base": return raw_map_base