Skip to content

Commit f0f448c

Browse files
committed
changed tech to excel specific if statement
1 parent d4ac3ba commit f0f448c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/compile_cost_assumptions.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,7 @@ 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-
no_drop = ["electrolysis", "direct air capture","cement capture", "biomass CHP capture", "BtL"]
484-
if tech in cost_year_2020 and (not tech in no_drop):
483+
if tech in cost_year_2020 and (not ("for_carbon_capture_transport_storage" in excel_file)) and (not ("renewable_fuels" in excel_file)):
485484
for attr in ["investment", "Fixed O&M"]:
486485
to_drop = df[df.index.str.contains(attr) &
487486
~df.index.str.contains("\(\*total\)")].index
@@ -846,7 +845,7 @@ def clean_up_units(tech_data, value_column="", source=""):
846845

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

851850
tech_data.unit = tech_data.unit.str.replace("\)", "")
852851
return tech_data

0 commit comments

Comments
 (0)