[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
16dcad0176
commit
e4651ce711
@ -122,6 +122,7 @@ def calculate_annuity(n, r):
|
|||||||
else:
|
else:
|
||||||
return 1 / n
|
return 1 / n
|
||||||
|
|
||||||
|
|
||||||
def add_missing_carriers(n, carriers):
|
def add_missing_carriers(n, carriers):
|
||||||
"""
|
"""
|
||||||
Function to add missing carriers to the network without raising errors.
|
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:
|
if len(missing_carriers) > 0:
|
||||||
n.madd("Carrier", missing_carriers)
|
n.madd("Carrier", missing_carriers)
|
||||||
|
|
||||||
|
|
||||||
def sanitize_carriers(n, config):
|
def sanitize_carriers(n, config):
|
||||||
"""
|
"""
|
||||||
Sanitize the carrier information in a PyPSA Network object.
|
Sanitize the carrier information in a PyPSA Network object.
|
||||||
|
Loading…
Reference in New Issue
Block a user