[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
8cdba1c8e4
commit
afda8ee1f6
@ -447,8 +447,11 @@ def add_heating_capacities_installed_before_baseyear(
|
||||
)
|
||||
# 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
|
||||
if all(f"{node} {service} rural heat" in p_set_sum.index for service in ["residential", "services"])
|
||||
else 0.
|
||||
if all(
|
||||
f"{node} {service} rural heat" in p_set_sum.index
|
||||
for service in ["residential", "services"]
|
||||
)
|
||||
else 0.0
|
||||
for node in nodal_df.index
|
||||
],
|
||||
index=nodal_df.index,
|
||||
|
@ -13,13 +13,14 @@ logger = logging.getLogger(__name__)
|
||||
import uuid
|
||||
from itertools import product
|
||||
|
||||
import country_converter as coco
|
||||
import geopandas as gpd
|
||||
import pandas as pd
|
||||
from packaging.version import Version, parse
|
||||
|
||||
import country_converter as coco
|
||||
cc = coco.CountryConverter()
|
||||
|
||||
|
||||
def locate_missing_industrial_sites(df):
|
||||
"""
|
||||
Locate industrial sites without valid locations based on city and
|
||||
|
Loading…
Reference in New Issue
Block a user