Skip to content

Commit

Permalink
fix hydro bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cpschau committed Oct 23, 2024
1 parent ae68a9a commit f050b43
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/solve_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ def hydrogen_temporal_constraint(n, n_ref, time_period):
res_ref_gen = n_ref.generators_t.p[res_gen_index] * weightings_gen

if not res_stor_index.empty:
res_ref_store = n_ref.generators_t.p[res_stor_index] * weightings_stor
res_ref_store = (
n_ref.storage_units_t.p_dispatch[res_stor_index] * weightings_stor
)
res_ref = pd.concat([res_ref_gen, res_ref_store])
else:
res_ref = res_ref_gen
Expand Down Expand Up @@ -634,10 +636,10 @@ def add_existing(n):
ll="v1.0",
opts="Co2L",
planning_horizons="2035",
sopts="24H",
sopts="876H",
discountrate=0.071,
demand="BI",
h2export="50",
demand="GH",
h2export="10",
)

sets_path_to_root("pypsa-earth-sec")
Expand Down

0 comments on commit f050b43

Please sign in to comment.