[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
c19b8d760e
commit
7d0b775ca9
@ -697,6 +697,7 @@ def _adjust_capacities_of_under_construction_branches(n, config):
|
|||||||
|
|
||||||
return n
|
return n
|
||||||
|
|
||||||
|
|
||||||
def _set_shapes(n, country_shapes, offshore_shapes):
|
def _set_shapes(n, country_shapes, offshore_shapes):
|
||||||
# Write the geodataframes country_shapes and offshore_shapes to the network.shapes component
|
# Write the geodataframes country_shapes and offshore_shapes to the network.shapes component
|
||||||
country_shapes = gpd.read_file(country_shapes).rename(columns={"name": "idx"})
|
country_shapes = gpd.read_file(country_shapes).rename(columns={"name": "idx"})
|
||||||
@ -706,6 +707,7 @@ def _set_shapes(n, country_shapes, offshore_shapes):
|
|||||||
all_shapes = pd.concat([country_shapes, offshore_shapes])
|
all_shapes = pd.concat([country_shapes, offshore_shapes])
|
||||||
n.shapes = pd.concat([n.shapes, all_shapes])
|
n.shapes = pd.concat([n.shapes, all_shapes])
|
||||||
|
|
||||||
|
|
||||||
def base_network(
|
def base_network(
|
||||||
eg_buses,
|
eg_buses,
|
||||||
eg_converters,
|
eg_converters,
|
||||||
@ -773,8 +775,10 @@ def base_network(
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
if "snakemake" not in globals():
|
if "snakemake" not in globals():
|
||||||
from _helpers import mock_snakemake
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from _helpers import mock_snakemake
|
||||||
|
|
||||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
snakemake = mock_snakemake("base_network")
|
snakemake = mock_snakemake("base_network")
|
||||||
|
Loading…
Reference in New Issue
Block a user