Skip to content

Commit

Permalink
plot_gas_network: save max usage calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
fneum committed Jan 26, 2024
1 parent 707adce commit b73c614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/plot_gas_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def plot_ch4_map(n):
link_widths_orig = n.links.p_nom / linewidth_factor
link_widths_orig[n.links.p_nom < line_lower_threshold] = 0.0

max_usage = n.links_t.p0.abs().max(axis=0)
max_usage = n.links_t.p0[n.links.index].abs().max(axis=0)
link_widths_used = max_usage / linewidth_factor
link_widths_used[max_usage < line_lower_threshold] = 0.0

Expand Down

0 comments on commit b73c614

Please sign in to comment.