Skip to content

Commit 55b4ac9

Browse files
committed
some more fixes
1 parent ab56beb commit 55b4ac9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/compile_cost_assumptions.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ def get_data_DEA(tech, data_in, expectation=None):
339339
'Heat input', 'Heat input', 'Electricity input', 'Eletricity input', 'Heat out',
340340
'capture rate',
341341
"FT Liquids Output, MWh/MWh Total Input",
342+
" - hereof recoverable for district heating [%-points of heat loss]",
342343
" - hereof recoverable for district heating (%-points of heat loss)",
343344
"Bio SNG Output [% of fuel input]",
344345
"Methanol Output",
@@ -1913,8 +1914,10 @@ def add_energy_storage_database(costs, data_year):
19131914
df_year = (df.year == a)
19141915
df.loc[charger_investment_filter & df_year, "value"] += agg.loc[(tech, a)]/2
19151916
df.loc[discharger_investment_filter & df_year, "value"] += agg.loc[(tech, a)]/2
1916-
1917-
df.loc[:,"technology"] = df["technology"] + "-" + df["technology_type"]
1917+
1918+
index = df.loc[df["technology_type"]!="nan"].index
1919+
df.technology_type.replace("nan", np.nan, inplace=True)
1920+
df.loc[index,"technology"] = df.loc[index, "technology"] + "-" + df.loc[index, "technology_type"]
19181921

19191922
# aggregate technology_type and unit
19201923
df = df.groupby(["technology", "unit", "year"]).agg({

0 commit comments

Comments
 (0)