Skip to content

Commit c710de2

Browse files
committed
change units for biomass-to-methanol
1 parent b0fbb1a commit c710de2

8 files changed

+2161
-2159
lines changed

outputs/costs_2020.csv

+308-308
Large diffs are not rendered by default.

outputs/costs_2025.csv

+308-308
Large diffs are not rendered by default.

outputs/costs_2030.csv

+308-308
Large diffs are not rendered by default.

outputs/costs_2035.csv

+308-308
Large diffs are not rendered by default.

outputs/costs_2040.csv

+308-308
Large diffs are not rendered by default.

outputs/costs_2045.csv

+308-308
Large diffs are not rendered by default.

outputs/costs_2050.csv

+308-308
Large diffs are not rendered by default.

scripts/compile_cost_assumptions.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,11 @@ def clean_up_units(tech_data, value_column="", source=""):
744744

745745
tech_data.unit = tech_data.unit.str.replace("FT Liquids Output, MWh/MWh Total Inpu", "MWh_FT/MWh_H2")
746746
# biomass-to-methanol-specific
747-
tech_data.unit = tech_data.unit.str.replace("Methanol Output, MWh/MWh Total Inpu", "MWh_MeOH/MWh_th")
748-
tech_data.unit = tech_data.unit.str.replace("District heat Output, MWh/MWh Total Inpu", "MWh_th/MWh_th")
749-
tech_data.unit = tech_data.unit.str.replace("Electricity Output, MWh/MWh Total Inpu", "MWh_e/MWh_th")
747+
if isinstance(tech_data.index, pd.MultiIndex):
748+
tech_data.loc[tech_data.index.get_level_values(1)=="Methanol Output,", "unit"] = "MWh_MeOH/MWh_th"
749+
tech_data.loc[tech_data.index.get_level_values(1)=='District heat Output,', "unit"] = "MWh_th/MWh_th"
750+
tech_data.loc[tech_data.index.get_level_values(1)=='Electricity Output,', "unit"] = "MWh_e/MWh_th"
751+
750752
# Ammonia-specific
751753
tech_data.unit = tech_data.unit.str.replace("MW Ammonia output", "MW_NH3") #specific investment
752754
tech_data.unit = tech_data.unit.str.replace("MW Ammonia", "MW_NH3") #fom

0 commit comments

Comments
 (0)