Skip to content

Commit 52bdf1b

Browse files
authored
Merge pull request #88 from PyPSA/fix/further-description-from-manual-input
Fix processing but of further_description from manual_input.csv and 'solar', 'solar-rooftop' description
2 parents b3db13d + b1f1882 commit 52bdf1b

File tree

9 files changed

+887
-838
lines changed

9 files changed

+887
-838
lines changed

docs/release_notes.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ Release Notes
55
Upcoming Release
66
================
77

8-
Updated technologies
9-
- updated cost assumptions for 'digestible biomass to hydrogen' and "solid biomass to hydrogen"
10-
- Fix: Unit for methanation investment costs is now correctly displayed as "EUR/kW_CH4" (`#82 <https://github.com/PyPSA/technology-data/issues/82#event-8638160137>`_)
8+
* General:
9+
- Fix 'further_description' column from 'manual_inputs.csv' not being correctly parsed by the workflow
1110

11+
* Updated technologies
12+
- updated cost assumptions for 'digestible biomass to hydrogen' and "solid biomass to hydrogen"
13+
- Fix: Unit for methanation investment costs is now correctly displayed as "EUR/kW_CH4" (`#82 <https://github.com/PyPSA/technology-data/issues/82#event-8638160137>`_)
14+
- Fix source and description for 'solar' and 'solar-rooftop' to correctly indicate how they are calculated
1215

1316
* New technologies
1417
- new biomass technologies ('biogas CC', 'central gas CHP CC', 'central hydrogen CHP', 'central solid biomass CHP CC', 'central solid biomass CHP powerboost CC',

outputs/costs_2020.csv

Lines changed: 125 additions & 119 deletions
Large diffs are not rendered by default.

outputs/costs_2025.csv

Lines changed: 125 additions & 119 deletions
Large diffs are not rendered by default.

outputs/costs_2030.csv

Lines changed: 125 additions & 119 deletions
Large diffs are not rendered by default.

outputs/costs_2035.csv

Lines changed: 125 additions & 119 deletions
Large diffs are not rendered by default.

outputs/costs_2040.csv

Lines changed: 125 additions & 119 deletions
Large diffs are not rendered by default.

outputs/costs_2045.csv

Lines changed: 125 additions & 119 deletions
Large diffs are not rendered by default.

outputs/costs_2050.csv

Lines changed: 125 additions & 119 deletions
Large diffs are not rendered by default.

scripts/compile_cost_assumptions.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ def add_manual_input(data):
13041304
s['technology'] = tech
13051305
for col in ['unit','source','further_description']:
13061306
s[col] = "; and\n".join(c[col].unique().astype(str))
1307-
1307+
s = s.rename({"further_description":"further description"}) # match column name between manual_input and original TD workflow
13081308
l.append(s)
13091309

13101310
new_df = pd.DataFrame(l).set_index(['technology','parameter'])
@@ -1747,12 +1747,16 @@ def add_mean_solar_rooftop(data):
17471747
rooftop[col] = data.loc["solar-rooftop residential"][col]
17481748
# set multi index
17491749
rooftop = pd.concat([rooftop], keys=["solar-rooftop"])
1750+
rooftop["source"] = "Calculated. See 'further description'."
1751+
rooftop["further description"] = "Mixed investment costs based on average of 50% 'solar-rooftop commercial' and 50% 'solar-rooftop residential'"
17501752
# add to data
17511753
data = pd.concat([data, rooftop])
17521754
# add solar assuming 50% utility and 50% rooftop
17531755
solar = (data.loc[["solar-rooftop", "solar-utility"]][years]).astype(float).groupby(level=1).mean()
17541756
for col in data.columns[~data.columns.isin(years)]:
1755-
solar[col] = data.loc["solar-rooftop residential"][col]
1757+
solar[col] = data.loc["solar-rooftop residential"][col]
1758+
solar["source"] = "Calculated. See 'further description'."
1759+
solar["further description"] = "Mixed investment costs based on average of 50% 'solar-rooftop' and 50% 'solar-utility'"
17561760
# set multi index
17571761
solar = pd.concat([solar], keys=["solar"])
17581762
return pd.concat([data, solar])

0 commit comments

Comments
 (0)