Skip to content

Commit ab56beb

Browse files
committed
first working version
1 parent 6317eee commit ab56beb

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

scripts/compile_cost_assumptions.py

+9-4
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,9 @@ def get_data_DEA(tech, data_in, expectation=None):
327327
parameters = ["efficiency", "investment", "Fixed O&M",
328328
"Variable O&M", "production capacity for one unit",
329329
"Output capacity expansion cost",
330-
"Hydrogen output",
330+
"Hydrogen Output",
331331
"Hydrogen (% total input_e (MWh / MWh))",
332+
"Hydrogen [% total input_e",
332333
" - hereof recoverable for district heating (%-points of heat loss)",
333334
"Cb coefficient",
334335
"Cv coefficient",
@@ -339,8 +340,8 @@ def get_data_DEA(tech, data_in, expectation=None):
339340
'capture rate',
340341
"FT Liquids Output, MWh/MWh Total Input",
341342
" - hereof recoverable for district heating (%-points of heat loss)",
342-
"Bio SNG (% of fuel input)",
343-
"Methanol Output",
343+
"Bio SNG Output [% of fuel input]",
344+
"Methanol Output",
344345
"District heat Output",
345346
"Electricity Output",
346347
"Total O&M"]
@@ -785,7 +786,8 @@ def clean_up_units(tech_data, value_column="", source=""):
785786
if "methanolisation" in tech_data.index:
786787
tech_data = tech_data.sort_index()
787788
tech_data.loc[('methanolisation', 'Variable O&M'), "unit"] = "EUR/MWh_MeOH"
788-
789+
790+
tech_data.unit = tech_data.unit.str.replace("\)", "")
789791
return tech_data
790792

791793

@@ -942,6 +944,7 @@ def order_data(tech_data):
942944
(df.unit=="EUR/MWh/year") |
943945
(df.unit=="EUR/MW_e, 2020") |
944946
(df.unit=="EUR/MW input") |
947+
(df.unit=='EUR/MW-methanol') |
945948
(df.unit=="EUR/t_N2/h")) # air separation unit
946949
].copy()
947950
if len(investment)!=1:
@@ -962,6 +965,7 @@ def order_data(tech_data):
962965
(df.unit=="EUR/MW_e/y, 2020")|
963966
(df.unit=="EUR/MW_e/y")|
964967
(df.unit=="EUR/MW_FT/year")|
968+
(df.unit=="EUR/MWh_FT")|
965969
(df.unit=="EUR/MW_MeOH/year")|
966970
(df.unit=="EUR/MW_CH4/year")|
967971
(df.unit=='% of specific investment/year')|
@@ -1033,6 +1037,7 @@ def order_data(tech_data):
10331037
(df.unit =="MWh_MeOH/MWh_th") |
10341038
(df.unit =="MWh_e/MWh_th") |
10351039
(df.unit =="MWh_th/MWh_th") |
1040+
(df.unit =='MWh/MWh Total Input') |
10361041
df.unit.str.contains("MWh_FT/MWh_H2"))
10371042
& (~df.index.str.contains("name plate"))].copy()
10381043

0 commit comments

Comments
 (0)