[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-03-04 16:24:49 +00:00
parent 1b6e5dc0c2
commit 3549e6843d

View File

@ -18,10 +18,10 @@ from _helpers import (
update_config_from_wildcards,
)
from add_existing_baseyear import add_build_year_to_new_assets
from prepare_sector_network import adjust_transport_temporal_agg
from pypsa.descriptors import expand_series
from pypsa.io import import_components_from_dataframe
from six import iterkeys
from prepare_sector_network import adjust_transport_temporal_agg
logger = logging.getLogger(__name__)
@ -522,7 +522,7 @@ if __name__ == "__main__":
if isinstance(segments, (int, float)):
n = apply_time_segmentation_perfect(n, segments, solver_name=solver_name)
adjust_transport_temporal_agg(n)
# adjust global constraints lv limit if the same for all years
n = adjust_lvlimit(n)
# adjust global constraints CO2 limit