[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
265fa098ae
commit
27c0d3a2d2
@ -3,23 +3,25 @@
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
import urllib
|
||||
from pathlib import Path
|
||||
import pandas as pd
|
||||
from tqdm import tqdm
|
||||
import contextlib
|
||||
import logging
|
||||
import os
|
||||
import urllib
|
||||
from pathlib import Path
|
||||
|
||||
import pandas as pd
|
||||
import pytz
|
||||
import yaml
|
||||
from pypsa.components import component_attrs, components
|
||||
from pypsa.descriptors import Dict
|
||||
from snakemake.utils import update_config
|
||||
from tqdm import tqdm
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
REGION_COLS = ["geometry", "name", "x", "y", "country"]
|
||||
|
||||
|
||||
# Define a context manager to temporarily mute print statements
|
||||
@contextlib.contextmanager
|
||||
def mute_print():
|
||||
|
@ -14,8 +14,8 @@ idx = pd.IndexSlice
|
||||
import numpy as np
|
||||
import pypsa
|
||||
import yaml
|
||||
from add_existing_baseyear import add_build_year_to_new_assets
|
||||
from _helpers import override_component_attrs, update_config_with_sector_opts
|
||||
from add_existing_baseyear import add_build_year_to_new_assets
|
||||
|
||||
|
||||
def add_brownfield(n, n_p, year):
|
||||
|
@ -13,12 +13,12 @@ import numpy as np
|
||||
import pandas as pd
|
||||
import pypsa
|
||||
import xarray as xr
|
||||
from build_energy_totals import build_co2_totals, build_eea_co2, build_eurostat_co2
|
||||
from _helpers import (
|
||||
generate_periodic_profiles,
|
||||
override_component_attrs,
|
||||
update_config_with_sector_opts,
|
||||
)
|
||||
from build_energy_totals import build_co2_totals, build_eea_co2, build_eurostat_co2
|
||||
from networkx.algorithms import complement
|
||||
from networkx.algorithms.connectivity.edge_augmentation import k_edge_augmentation
|
||||
from pypsa.geo import haversine_pts
|
||||
|
Loading…
Reference in New Issue
Block a user