Skip to content

Commit d55fbf9

Browse files
authored
Merge pull request #269 from iiasa/costs/tech-type
Remove `technology_type` column from `tools.costs`
2 parents 44087e4 + 59c4ace commit d55fbf9

File tree

4 files changed

+107
-109
lines changed

4 files changed

+107
-109
lines changed

doc/whatsnew.rst

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Investment and fixed costs
6464
- Add `cooling` technology variant/module (:pull:`222`).
6565
- Add functionality to specify cost reduction values and cost reduction scenarios in a module (:issue:`251`, :pull:`255`).
6666
- Fix technology mapping of ammonia CCS technologies in materials module (:pull:`258`).
67+
- Remove unused `technology_type` column from tool (:pull:`269`).
6768

6869
Others
6970
------
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,96 @@
1-
# Cost reduction in 2100,,,,,,
2-
# ,,,,,,
3-
# Units: % ,,,,,,
4-
#,,,,,,
5-
# Data is copied from Sheet1 in https://github.com/iiasa/message_data/blob/dev/data/model/investment_cost/SSP_technology_learning.xlsx,,,,,,
6-
# There are some manually changed assumptions to the original GEA data in the spreadsheet (can be seen in the spreadsheet as marked in yellow),,,,,,
7-
# The initial copied data can be found in gea_reduction_rates.csv,,,,,,
8-
# This file renames the learning rates from GEAL to low and GEAM to medium and GEAH to high,,,,,,
9-
message_technology,technology_type,very_low,low,medium,high,very_high
10-
bio_istig,Biomass,0,0.1,0.3,0.4,0.5
11-
bio_istig_ccs,CCS,0,0.1,0.3,0.4,0.6
12-
bio_ppl,Biomass,0,0.1,0.2,0.3,0.4
13-
bio_ppl_co2scr,CCS,0,0,0,0.3,0.4
14-
biomass_i,Biomass,0,0,0,0,0
15-
c_ppl_co2scr,CCS,0,0,0,0.3,0.4
16-
coal_adv,Coal,0,0.1,0.3,0.5,0.7
17-
coal_adv_ccs,CCS,0,0.1,0.3,0.5,0.7
18-
coal_i,Coal,0,0,0,0,0
19-
coal_ppl,Coal,0,0,0.2,0.5,0.7
20-
coal_ppl_u,Coal,0,0,0,0,0
21-
csp_sm1_ppl,Renewable,0.15,0.3,0.3,0.5,0.7
22-
csp_sm3_ppl,Renewable,0.15,0.3,0.3,0.5,0.7
23-
elec_i,NA,0,0,0,0,0
24-
eth_bio,Biomass,0,0.27,0.27,0.4,0.55
25-
eth_bio_ccs,CCS,0,0.27,0.27,0.4,0.55
26-
eth_i,Biomass,0,0,0,0,0
27-
foil_i,Gas/Oil,0,0,0,0,0
28-
g_ppl_co2scr,CCS,0,0,0,0.3,0.4
29-
gas_cc,Gas/Oil,0.1,0.2,0.29,0.38,0.5
30-
gas_cc_ccs,CCS,0.1,0.2,0.29,0.5,0.7
31-
gas_ct,Gas/Oil,0.1,0.2,0.29,0.38,0.5
32-
gas_i,Gas/Oil,0,0,0,0,0
33-
gas_ppl,Gas/Oil,0.1,0.2,0.29,0.38,0.5
34-
geo_hpl,Renewable,0.1,0.15,0.18,0.25,0.35
35-
geo_ppl,Renewable,0,0.1,0.18,0.25,0.35
36-
h2_bio,Biomass,0,0.25,0.4,0.5,0.7
37-
h2_bio_ccs,CCS,0,0.25,0.4,0.5,0.7
38-
h2_coal,Coal,0,0.25,0.4,0.4,0.5
39-
h2_coal_ccs,CCS,0,0.25,0.4,0.4,0.5
40-
h2_elec,Renewable,0,0,0.1,0.2,0.3
41-
h2_i,NA,0,0,0,0,0
42-
h2_smr,Gas/Oil,0,0.25,0.4,0.5,0.7
43-
h2_smr_ccs,CCS,0,0.25,0.4,0.5,0.7
44-
heat_i,NA,0,0,0,0,0
45-
hp_el_i,Renewable,0.1,0.2,0.5,0.5,0.6
46-
hp_gas_i,Gas/Oil,0.1,0.2,0.4,0.4,0.5
47-
hydro_hc,Renewable,0,0,0,0,0
48-
hydro_lc,Renewable,0,0,0,0,0
49-
igcc,Coal,0,0.1,0.3,0.5,0.7
50-
igcc_ccs,CCS,0,0.1,0.3,0.5,0.7
51-
liq_bio,Biomass,0.15,0.27,0.27,0.4,0.55
52-
liq_bio_ccs,CCS,0.15,0.27,0.27,0.4,0.55
53-
loil_i,Gas/Oil,0,0,0,0,0
54-
meth_coal,Coal,0,0.05,0.1,0.15,0.2
55-
meth_coal_ccs,CCS,0,0.05,0.1,0.15,0.2
56-
meth_i,Coal,0,0,0,0,0
57-
meth_ng,Gas/Oil,0,0.05,0.1,0.15,0.2
58-
meth_ng_ccs,CCS,0,0.05,0.1,0.15,0.2
59-
nuc_hc,Nuclear,0,0,0.15,0.3,0.45
60-
nuc_lc,Nuclear,0,0,0,0,0
61-
solar_i,Renewable,0.1,0.2,0.6,0.9,0.95
62-
solar_pv_I,Renewable,0.15,0.3,0.7,0.9,0.95
63-
solar_pv_RC,Renewable,0.15,0.3,0.7,0.9,0.95
64-
solar_res_hist_2005,Renewable,0.15,0.3,0.7,0.9,0.95
65-
solar_res_hist_2010,Renewable,0.15,0.3,0.7,0.9,0.95
66-
solar_res_hist_2015,Renewable,0.15,0.3,0.7,0.9,0.95
67-
solar_res_hist_2020,Renewable,0.15,0.3,0.7,0.9,0.95
68-
solar_res1,Renewable,0.15,0.3,0.7,0.9,0.95
69-
solar_res2,Renewable,0.15,0.3,0.7,0.9,0.95
70-
solar_res3,Renewable,0.15,0.3,0.7,0.9,0.95
71-
solar_res4,Renewable,0.15,0.3,0.7,0.9,0.95
72-
solar_res5,Renewable,0.15,0.3,0.7,0.9,0.95
73-
solar_res6,Renewable,0.15,0.3,0.7,0.9,0.95
74-
solar_res7,Renewable,0.15,0.3,0.7,0.9,0.95
75-
solar_res8,Renewable,0.15,0.3,0.7,0.9,0.95
76-
solar_th_ppl,Renewable,0.15,0.3,0.3,0.5,0.7
77-
stor_ppl,Renewable,0.15,0.3,0.7,0.9,0.95
78-
syn_liq,Coal,0,0.05,0.1,0.15,0.2
79-
syn_liq_ccs,CCS,0,0.05,0.1,0.15,0.2
80-
wind_ref_hist_2005,Renewable,0.15,0.3,0.53,0.65,0.75
81-
wind_ref_hist_2010,Renewable,0.15,0.3,0.53,0.65,0.75
82-
wind_ref_hist_2015,Renewable,0.15,0.3,0.53,0.65,0.75
83-
wind_ref_hist_2020,Renewable,0.15,0.3,0.53,0.65,0.75
84-
wind_ref1,Renewable,0.15,0.3,0.53,0.65,0.75
85-
wind_ref2,Renewable,0.15,0.3,0.53,0.65,0.75
86-
wind_ref3,Renewable,0.15,0.3,0.53,0.65,0.75
87-
wind_ref4,Renewable,0.15,0.3,0.53,0.65,0.75
88-
wind_ref5,Renewable,0.15,0.3,0.53,0.65,0.75
89-
wind_res_hist_2005,Renewable,0.15,0.3,0.53,0.65,0.75
90-
wind_res_hist_2010,Renewable,0.15,0.3,0.53,0.65,0.75
91-
wind_res_hist_2015,Renewable,0.15,0.3,0.53,0.65,0.75
92-
wind_res_hist_2020,Renewable,0.15,0.3,0.53,0.65,0.75
93-
wind_res1,Renewable,0.15,0.3,0.53,0.65,0.75
94-
wind_res2,Renewable,0.15,0.3,0.53,0.65,0.75
95-
wind_res3,Renewable,0.15,0.3,0.53,0.65,0.75
96-
wind_res4,Renewable,0.15,0.3,0.53,0.65,0.75
1+
# Cost reduction in 2100,,,,,
2+
# ,,,,,
3+
# Units: % ,,,,,
4+
#,,,,,
5+
# Data is copied from Sheet1 in https://github.com/iiasa/message_data/blob/dev/data/model/investment_cost/SSP_technology_learning.xlsx,,,,,
6+
# There are some manually changed assumptions to the original GEA data in the spreadsheet (can be seen in the spreadsheet as marked in yellow),,,,,
7+
# The initial copied data can be found in gea_reduction_rates.csv,,,,,
8+
# This file renames the learning rates from GEAL to low and GEAM to medium and GEAH to high,,,,,
9+
message_technology,very_low,low,medium,high,very_high
10+
bio_istig,0,0.1,0.3,0.4,0.5
11+
bio_istig_ccs,0,0.1,0.3,0.4,0.6
12+
bio_ppl,0,0.1,0.2,0.3,0.4
13+
bio_ppl_co2scr,0,0,0,0.3,0.4
14+
biomass_i,0,0,0,0,0
15+
c_ppl_co2scr,0,0,0,0.3,0.4
16+
coal_adv,0,0.1,0.3,0.5,0.7
17+
coal_adv_ccs,0,0.1,0.3,0.5,0.7
18+
coal_i,0,0,0,0,0
19+
coal_ppl,0,0,0.2,0.5,0.7
20+
coal_ppl_u,0,0,0,0,0
21+
csp_sm1_ppl,0.15,0.3,0.3,0.5,0.7
22+
csp_sm3_ppl,0.15,0.3,0.3,0.5,0.7
23+
elec_i,0,0,0,0,0
24+
eth_bio,0,0.27,0.27,0.4,0.55
25+
eth_bio_ccs,0,0.27,0.27,0.4,0.55
26+
eth_i,0,0,0,0,0
27+
foil_i,0,0,0,0,0
28+
g_ppl_co2scr,0,0,0,0.3,0.4
29+
gas_cc,0.1,0.2,0.29,0.38,0.5
30+
gas_cc_ccs,0.1,0.2,0.29,0.5,0.7
31+
gas_ct,0.1,0.2,0.29,0.38,0.5
32+
gas_i,0,0,0,0,0
33+
gas_ppl,0.1,0.2,0.29,0.38,0.5
34+
geo_hpl,0.1,0.15,0.18,0.25,0.35
35+
geo_ppl,0,0.1,0.18,0.25,0.35
36+
h2_bio,0,0.25,0.4,0.5,0.7
37+
h2_bio_ccs,0,0.25,0.4,0.5,0.7
38+
h2_coal,0,0.25,0.4,0.4,0.5
39+
h2_coal_ccs,0,0.25,0.4,0.4,0.5
40+
h2_elec,0,0,0.1,0.2,0.3
41+
h2_i,0,0,0,0,0
42+
h2_smr,0,0.25,0.4,0.5,0.7
43+
h2_smr_ccs,0,0.25,0.4,0.5,0.7
44+
heat_i,0,0,0,0,0
45+
hp_el_i,0.1,0.2,0.5,0.5,0.6
46+
hp_gas_i,0.1,0.2,0.4,0.4,0.5
47+
hydro_hc,0,0,0,0,0
48+
hydro_lc,0,0,0,0,0
49+
igcc,0,0.1,0.3,0.5,0.7
50+
igcc_ccs,0,0.1,0.3,0.5,0.7
51+
liq_bio,0.15,0.27,0.27,0.4,0.55
52+
liq_bio_ccs,0.15,0.27,0.27,0.4,0.55
53+
loil_i,0,0,0,0,0
54+
meth_coal,0,0.05,0.1,0.15,0.2
55+
meth_coal_ccs,0,0.05,0.1,0.15,0.2
56+
meth_i,0,0,0,0,0
57+
meth_ng,0,0.05,0.1,0.15,0.2
58+
meth_ng_ccs,0,0.05,0.1,0.15,0.2
59+
nuc_hc,0,0,0.15,0.3,0.45
60+
nuc_lc,0,0,0,0,0
61+
solar_i,0.1,0.2,0.6,0.9,0.95
62+
solar_pv_I,0.15,0.3,0.7,0.9,0.95
63+
solar_pv_RC,0.15,0.3,0.7,0.9,0.95
64+
solar_res_hist_2005,0.15,0.3,0.7,0.9,0.95
65+
solar_res_hist_2010,0.15,0.3,0.7,0.9,0.95
66+
solar_res_hist_2015,0.15,0.3,0.7,0.9,0.95
67+
solar_res_hist_2020,0.15,0.3,0.7,0.9,0.95
68+
solar_res1,0.15,0.3,0.7,0.9,0.95
69+
solar_res2,0.15,0.3,0.7,0.9,0.95
70+
solar_res3,0.15,0.3,0.7,0.9,0.95
71+
solar_res4,0.15,0.3,0.7,0.9,0.95
72+
solar_res5,0.15,0.3,0.7,0.9,0.95
73+
solar_res6,0.15,0.3,0.7,0.9,0.95
74+
solar_res7,0.15,0.3,0.7,0.9,0.95
75+
solar_res8,0.15,0.3,0.7,0.9,0.95
76+
solar_th_ppl,0.15,0.3,0.3,0.5,0.7
77+
stor_ppl,0.15,0.3,0.7,0.9,0.95
78+
syn_liq,0,0.05,0.1,0.15,0.2
79+
syn_liq_ccs,0,0.05,0.1,0.15,0.2
80+
wind_ref_hist_2005,0.15,0.3,0.53,0.65,0.75
81+
wind_ref_hist_2010,0.15,0.3,0.53,0.65,0.75
82+
wind_ref_hist_2015,0.15,0.3,0.53,0.65,0.75
83+
wind_ref_hist_2020,0.15,0.3,0.53,0.65,0.75
84+
wind_ref1,0.15,0.3,0.53,0.65,0.75
85+
wind_ref2,0.15,0.3,0.53,0.65,0.75
86+
wind_ref3,0.15,0.3,0.53,0.65,0.75
87+
wind_ref4,0.15,0.3,0.53,0.65,0.75
88+
wind_ref5,0.15,0.3,0.53,0.65,0.75
89+
wind_res_hist_2005,0.15,0.3,0.53,0.65,0.75
90+
wind_res_hist_2010,0.15,0.3,0.53,0.65,0.75
91+
wind_res_hist_2015,0.15,0.3,0.53,0.65,0.75
92+
wind_res_hist_2020,0.15,0.3,0.53,0.65,0.75
93+
wind_res1,0.15,0.3,0.53,0.65,0.75
94+
wind_res2,0.15,0.3,0.53,0.65,0.75
95+
wind_res3,0.15,0.3,0.53,0.65,0.75
96+
wind_res4,0.15,0.3,0.53,0.65,0.75
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Cost reduction in 2100,,,,,,
2-
# ,,,,,,
3-
# Units: % ,,,,,,
4-
message_technology,technology_type,very_low,low,medium,high,very_high
1+
# Cost reduction in 2100,,,,,
2+
# ,,,,,
3+
# Units: % ,,,,,
4+
message_technology,very_low,low,medium,high,very_high

message_ix_models/tools/costs/decay.py

+6-9
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ def _get_module_scenarios_reduction(
8181
)
8282
]
8383

84-
# append scen_red_module to scen_red_energy
85-
scenarios_joined = scenarios_energy._append(scenarios_module).reset_index(
86-
drop=True
84+
# concat scenarios_energy and scenarios_module
85+
scenarios_joined = pd.concat(
86+
[scenarios_energy, scenarios_module], ignore_index=True
8787
)
8888
else:
8989
scenarios_joined = scenarios_energy.copy()
@@ -207,7 +207,6 @@ def _get_module_cost_reduction(
207207
pd.concat([reduction_energy, reduction_energy_no_reduction], ignore_index=True)
208208
.sort_values("message_technology")
209209
.reset_index(drop=True)
210-
.drop(columns=["technology_type"])
211210
)
212211

213212
if module != "energy":
@@ -224,11 +223,9 @@ def _get_module_cost_reduction(
224223
)
225224
]
226225

227-
# append scen_red_module to scen_red_energy
228-
reduction_joined = (
229-
reduction_energy._append(reduction_module)
230-
.reset_index(drop=True)
231-
.drop(columns=["technology_type"])
226+
# concat reduction_energy and reduction_module
227+
reduction_joined = pd.concat(
228+
[reduction_energy, reduction_module], ignore_index=True
232229
)
233230
else:
234231
reduction_joined = reduction_energy.copy()

0 commit comments

Comments
 (0)