Skip to content

Commit

Permalink
Make chp_fixed_ratio inflow display as demand on stacked graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Oct 7, 2024
1 parent 7f3efd4 commit 70ef3d7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/dashboard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,10 @@ def graph_timeseries_stacked(simulations, y_variables, energy_vector):
When(
Q(asset_type="heat_pump") & Q(direction="out"), then=Value("none")
),
When(
Q(asset_type="chp_fixed_ratio") & Q(direction="out"),
then=Value("none"),
),
default=Value("tonexty"),
),
group=Case(
Expand All @@ -961,6 +965,10 @@ def graph_timeseries_stacked(simulations, y_variables, energy_vector):
When(
Q(asset_type="heat_pump") & Q(direction="out"), then=Value("demand")
),
When(
Q(asset_type="chp_fixed_ratio") & Q(direction="out"),
then=Value("demand"),
),
When(
Q(oemof_type="sink"), # & Q(asset_type__contains="demand"),
then=Value("demand"),
Expand All @@ -976,6 +984,10 @@ def graph_timeseries_stacked(simulations, y_variables, energy_vector):
When(
Q(asset_type="heat_pump") & Q(direction="out"), then=Value("lines")
),
When(
Q(asset_type="chp_fixed_ratio") & Q(direction="out"),
then=Value("lines"),
),
default=Value("none"),
),
plot_order=Case(
Expand Down

0 comments on commit 70ef3d7

Please sign in to comment.