[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] 2024-01-25 19:39:07 +00:00
parent 3f112f0e95
commit 30ccde5b90
5 changed files with 10 additions and 10 deletions

View File

@ -32,7 +32,6 @@ if config["foresight"] != "perfect":
script:
"../scripts/plot_power_network.py"
rule plot_hydrogen_network:
params:
plotting=config["plotting"],
@ -56,7 +55,6 @@ if config["foresight"] != "perfect":
script:
"../scripts/plot_hydrogen_network.py"
rule plot_gas_network:
params:
plotting=config["plotting"],

View File

@ -3,7 +3,8 @@
#
# SPDX-License-Identifier: MIT
"""
Creates map of optimised gas network, storage and selected other infrastructure.
Creates map of optimised gas network, storage and selected other
infrastructure.
"""
import logging
@ -13,8 +14,8 @@ import matplotlib.pyplot as plt
import pandas as pd
import pypsa
from _helpers import configure_logging
from pypsa.plot import add_legend_circles, add_legend_lines, add_legend_patches
from plot_power_network import assign_location, load_projection
from pypsa.plot import add_legend_circles, add_legend_lines, add_legend_patches
logger = logging.getLogger(__name__)

View File

@ -3,7 +3,8 @@
#
# SPDX-License-Identifier: MIT
"""
Creates map of optimised hydrogen network, storage and selected other infrastructure.
Creates map of optimised hydrogen network, storage and selected other
infrastructure.
"""
import logging
@ -13,9 +14,8 @@ import matplotlib.pyplot as plt
import pandas as pd
import pypsa
from _helpers import configure_logging
from pypsa.plot import add_legend_circles, add_legend_lines, add_legend_patches
from plot_power_network import assign_location, load_projection
from pypsa.plot import add_legend_circles, add_legend_lines, add_legend_patches
logger = logging.getLogger(__name__)

View File

@ -14,12 +14,13 @@ import geopandas as gpd
import matplotlib.pyplot as plt
import pandas as pd
import pypsa
from plot_summary import preferred_order, rename_techs
from _helpers import configure_logging
from plot_summary import preferred_order, rename_techs
from pypsa.plot import add_legend_circles, add_legend_lines, add_legend_patches
logger = logging.getLogger(__name__)
def rename_techs_tyndp(tech):
tech = rename_techs(tech)
if "heat pump" in tech or "resistive heater" in tech:

View File

@ -14,9 +14,9 @@ import matplotlib.pyplot as plt
import pandas as pd
import pypsa
from _helpers import configure_logging
from pypsa.plot import add_legend_circles, add_legend_lines
from plot_power_network import assign_location, rename_techs_tyndp, load_projection
from plot_power_network import assign_location, load_projection, rename_techs_tyndp
from plot_summary import preferred_order
from pypsa.plot import add_legend_circles, add_legend_lines
logger = logging.getLogger(__name__)