Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes/#747 update documentation cross border flow functions #756

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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