Skip to content

Commit

Permalink
Do not show nodes with 0 flow in sankey diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Oct 7, 2024
1 parent 8378169 commit 7f3efd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/dashboard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1441,8 +1441,8 @@ def graph_sankey(simulation, energy_vector, timestep=None):
if component_label in chp_in_flow:
chp_in_flow[component_label]["value"] += val

if val == 0:
val = 1e-9
# if val == 0:
# val = 1e-9
values.append(val)
if ts is None:
bus_to_asset_names = qs.filter(
Expand Down Expand Up @@ -1485,8 +1485,8 @@ def graph_sankey(simulation, energy_vector, timestep=None):
val = json.loads(val)
val = val[ts]

if val == 0:
val = 1e-9
# if val == 0:
# val = 1e-9
values.append(val)

# TODO display the installed capacity, max capacity and optimized_add_capacity on the nodes if applicable
Expand Down

0 comments on commit 7f3efd4

Please sign in to comment.