Skip to content

Commit

Permalink
add plot_carrier to the etrago methods
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosEpia committed Aug 7, 2023
1 parent 6e2a0d5 commit 670ff5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions etrago/tools/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
heat_stores,
hydrogen_stores,
plot_clusters,
plot_carrier,
plot_gas_generation,
plot_gas_summary,
plot_grid,
Expand Down Expand Up @@ -267,6 +268,8 @@ def __init__(
plot_grid = plot_grid

plot_clusters = plot_clusters

plot_carrier = plot_carrier

plot_gas_generation = plot_gas_generation

Expand Down
4 changes: 2 additions & 2 deletions etrago/tools/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2134,7 +2134,7 @@ def flexibility_usage(
fig_e.savefig(pre_path + f"stored_e_{flexibility}")


def plot_carrier(network, carrier_links=["AC"], carrier_buses=["AC"]):
def plot_carrier(etrago, carrier_links=["AC"], carrier_buses=["AC"]):
"""
Parameters
----------
Expand All @@ -2152,7 +2152,7 @@ def plot_carrier(network, carrier_links=["AC"], carrier_buses=["AC"]):
None.
"""

network = etrago.network
colors = coloring()
line_colors = "lightblue"

Expand Down

0 comments on commit 670ff5e

Please sign in to comment.