Skip to content

Commit

Permalink
Merge branch 'features/#246-myopic-pypsaeur-decentral-heat' into run-…
Browse files Browse the repository at this point in the history
…status2019-and-egon100re-DE
  • Loading branch information
CarlosEpia committed Jan 13, 2025
2 parents bf26ec1 + 1e4516f commit c85fedf
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/egon/data/datasets/scenario_capacities.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,12 @@ def eGon100_capacities():

# Aggregate offshore wind
df.loc["wind_offshore"] = df[df.index.str.startswith("offwind")].sum(numeric_only=True)
df.loc["wind_offshore", "component"] = "generator"
df.loc["wind_offshore", "component"] = "generators"
df = df.drop(df.index[df.index.str.startswith("offwind")])

# Aggregate OCGT and CCGT
df.loc["gas"] = df[df.index.str.endswith("CGT")].sum(numeric_only=True)
df.loc["gas", "component"] = "link"
df.loc["gas", "component"] = "links"
df = df.drop(df.index[df.index.str.endswith("CGT")])

# Aggregate hydro and pumped_hydro
Expand All @@ -755,7 +755,7 @@ def eGon100_capacities():

# Aggregate solar and solar-hsat
df.loc["solar"] = df.loc["solar"] + df.loc["solar-hsat"]
df.loc["solar", "component"] = "generator"
df.loc["solar", "component"] = "generators"
df = df.drop(["solar-hsat"])

# Aggregate technologies with and without carbon_capture (CC)
Expand Down Expand Up @@ -785,6 +785,12 @@ def eGon100_capacities():
# Drop urban decentral technology
df = df.drop(merge_carrier)

# Aggregate rural air and rural ground heat pump
df.loc["rural_heat_pump"] = df.loc[
"rural_air_heat_pump"] + df.loc["rural_ground_heat_pump"]
df.loc["rural_heat_pump", "component"] = "links"
df = df.drop(["rural_air_heat_pump", "rural_ground_heat_pump"])

# Rename carriers
df.rename(
{
Expand Down Expand Up @@ -852,7 +858,7 @@ class ScenarioCapacities(Dataset):
def __init__(self, dependencies):
super().__init__(
name="ScenarioCapacities",
version="0.0.15",
version="0.0.16",
dependencies=dependencies,
tasks=tasks,
)

0 comments on commit c85fedf

Please sign in to comment.