[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-06-30 11:28:54 +00:00
parent 16dcad0176
commit e4651ce711

View File

@ -122,6 +122,7 @@ def calculate_annuity(n, r):
else:
return 1 / n
def add_missing_carriers(n, carriers):
"""
Function to add missing carriers to the network without raising errors.
@ -130,6 +131,7 @@ def add_missing_carriers(n, carriers):
if len(missing_carriers) > 0:
n.madd("Carrier", missing_carriers)
def sanitize_carriers(n, config):
"""
Sanitize the carrier information in a PyPSA Network object.