Skip to content

Commit

Permalink
Merge pull request #756 from openego/fixes/#747-update-documentation-…
Browse files Browse the repository at this point in the history
…cross-border-flow-functions

Fixes/#747 update documentation cross border flow functions
  • Loading branch information
ClaraBuettner authored Jan 27, 2025
2 parents d79eea9 + 99fff3c commit 8376593
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions etrago/analyze/calc_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,12 +504,12 @@ def system_costs_germany(self):


def ac_export(self):
"""Calculate electricity exports and imports over AC lines
"""Calculate the balance of electricity exports and imports over AC lines
Returns
-------
float
Electricity export (if negative: import) from Germany
Balance of electricity export in MWh (if negative: import from Germany)
"""
de_buses = self.network.buses[self.network.buses.country == "DE"]
Expand All @@ -536,12 +536,13 @@ def ac_export(self):


def ac_export_per_country(self):
"""Calculate electricity exports and imports over AC lines per country
"""Calculate the balance of electricity exports and imports over AC lines
per country
Returns
-------
float
Electricity export (if negative: import) from Germany in TWh
Balance of electricity exchange in TWh (if > 0: export from Germany)
"""
de_buses = self.network.buses[self.network.buses.country == "DE"]
Expand Down Expand Up @@ -583,12 +584,12 @@ def ac_export_per_country(self):


def dc_export(self):
"""Calculate electricity exports and imports over DC lines
"""Calculate the balance of electricity exports and imports over DC lines
Returns
-------
float
Electricity export (if negative: import) from Germany
Balance of electricity exchange in MWh (if > 0: export from Germany)
"""
de_buses = self.network.buses[self.network.buses.country == "DE"]
Expand Down Expand Up @@ -616,12 +617,13 @@ def dc_export(self):


def dc_export_per_country(self):
"""Calculate electricity exports and imports over DC lines per country
"""Calculate the balance of electricity exports and imports over DC lines
per country
Returns
-------
float
Electricity export (if negative: import) from Germany in TWh
Balance of electricity exchange in TWh (if > 0: export from Germany)
"""
de_buses = self.network.buses[self.network.buses.country == "DE"]
Expand Down

0 comments on commit 8376593

Please sign in to comment.