Skip to content

Commit 0e9bf36

Browse files
committed
update testing
1 parent 2e1b77b commit 0e9bf36

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

scripts/compile_cost_assumptions.py

+22-15
Original file line numberDiff line numberDiff line change
@@ -229,17 +229,17 @@
229229
'Fischer-Tropsch'
230230
]
231231

232-
cost_year_2019 = ['direct firing gas',
233-
'direct firing gas CC',
234-
'direct firing solid fuels',
235-
'direct firing solid fuels CC',
236-
'industrial heat pump medium temperature',
237-
'industrial heat pump high temperature',
238-
'electric boiler steam',
239-
'gas boiler steam',
240-
'solid biomass boiler steam',
241-
'solid biomass boiler steam CC',
242-
]
232+
# cost_year_2019 = ['direct firing gas',
233+
# 'direct firing gas CC',
234+
# 'direct firing solid fuels',
235+
# 'direct firing solid fuels CC',
236+
# 'industrial heat pump medium temperature',
237+
# 'industrial heat pump high temperature',
238+
# 'electric boiler steam',
239+
# 'gas boiler steam',
240+
# 'solid biomass boiler steam',
241+
# 'solid biomass boiler steam CC',
242+
# ]
243243

244244

245245
# %% -------- FUNCTIONS ---------------------------------------------------
@@ -299,7 +299,7 @@ def get_data_DEA(tech, data_in, expectation=None):
299299
usecols += f",{uncrtnty_lookup[tech]}"
300300

301301

302-
if (tech in cost_year_2019) or (tech in cost_year_2020) or ("renewable_fuels" in excel_file):
302+
if ((tech in cost_year_2019) or (tech in cost_year_2020) or ("renewable_fuels" in excel_file)):
303303
skiprows = [0]
304304
else:
305305
skiprows = [0,1]
@@ -480,7 +480,8 @@ def get_data_DEA(tech, data_in, expectation=None):
480480
df_final = df_final.ffill(axis=1)
481481

482482
df_final["source"] = source_dict["DEA"] + ", " + excel_file.replace("inputs/","")
483-
if tech in (cost_year_2019+cost_year_2020) and (tech!="electrolysis"):
483+
no_drop = ["electrolysis", "direct air capture","cement capture", "biomass CHP capture", "BtL", "biomass boilder steam"]
484+
if tech in (cost_year_2019 + cost_year_2020) and (not tech in no_drop):
484485
for attr in ["investment", "Fixed O&M"]:
485486
to_drop = df[df.index.str.contains(attr) &
486487
~df.index.str.contains("\(\*total\)")].index
@@ -845,7 +846,7 @@ def clean_up_units(tech_data, value_column="", source=""):
845846

846847
if "methanolisation" in tech_data.index:
847848
tech_data = tech_data.sort_index()
848-
tech_data.loc[('methanolisation', 'Variable O&M'), "unit"] = "EUR/MWh_MeOH"
849+
tech_data.loc[("methanolisation", "Variable O&M [EUR/MWh-methanol]"), "unit"] = "EUR/MWh_MeOH"
849850

850851
tech_data.unit = tech_data.unit.str.replace("\)", "")
851852
return tech_data
@@ -1292,7 +1293,7 @@ def add_carbon_capture(data, tech_data):
12921293
data.loc[(tech,"capture_rate"), 'unit'] = 'per unit'
12931294

12941295

1295-
for tech in ['direct air capture', 'cement capture', 'biomass CHP capture']:
1296+
for tech in ['cement capture', 'biomass CHP capture']: # 'direct air capture',
12961297

12971298
data.loc[(tech,"investment"), years] = tech_data.loc[(tech,'Specific investment'), years].values[0]*1e6
12981299
data.loc[(tech,"investment"), 'unit'] = 'EUR/(tCO2/h)'
@@ -2348,3 +2349,9 @@ def prepare_inflation_rate(fn):
23482349
costs_tot.loc[:,'value'] = round(costs_tot.value.astype(float),
23492350
snakemake.config.get("ndigits", 2))
23502351
costs_tot.to_csv([v for v in snakemake.output if str(year) in v][0])
2352+
2353+
2354+
# minimum two things missing:
2355+
# ('solid biomass boiler steam', 'efficiency')
2356+
# ('BtL', 'FOM')
2357+

0 commit comments

Comments
 (0)