[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-08-23 07:37:26 +00:00
parent 8cdba1c8e4
commit afda8ee1f6
2 changed files with 7 additions and 3 deletions

View File

@ -447,8 +447,11 @@ def add_heating_capacities_installed_before_baseyear(
) )
# if rural heating demand for one of the nodes doesn't exist, # if rural heating demand for one of the nodes doesn't exist,
# then columns were dropped before and heating demand share should be 0.0 # then columns were dropped before and heating demand share should be 0.0
if all(f"{node} {service} rural heat" in p_set_sum.index for service in ["residential", "services"]) if all(
else 0. f"{node} {service} rural heat" in p_set_sum.index
for service in ["residential", "services"]
)
else 0.0
for node in nodal_df.index for node in nodal_df.index
], ],
index=nodal_df.index, index=nodal_df.index,

View File

@ -13,13 +13,14 @@ logger = logging.getLogger(__name__)
import uuid import uuid
from itertools import product from itertools import product
import country_converter as coco
import geopandas as gpd import geopandas as gpd
import pandas as pd import pandas as pd
from packaging.version import Version, parse from packaging.version import Version, parse
import country_converter as coco
cc = coco.CountryConverter() cc = coco.CountryConverter()
def locate_missing_industrial_sites(df): def locate_missing_industrial_sites(df):
""" """
Locate industrial sites without valid locations based on city and Locate industrial sites without valid locations based on city and