diff --git a/src/oemof/solph/_models.py b/src/oemof/solph/_models.py index a61000cc8..8871315ac 100644 --- a/src/oemof/solph/_models.py +++ b/src/oemof/solph/_models.py @@ -14,10 +14,10 @@ SPDX-License-Identifier: MIT """ +import itertools import logging import warnings from logging import getLogger -import itertools from oemof.tools import debugging from pyomo import environ as po diff --git a/src/oemof/solph/processing.py b/src/oemof/solph/processing.py index 33a8b5e86..a46d50fe8 100644 --- a/src/oemof/solph/processing.py +++ b/src/oemof/solph/processing.py @@ -14,9 +14,10 @@ SPDX-License-Identifier: MIT """ -import sys -from itertools import groupby, accumulate import operator +import sys +from itertools import accumulate +from itertools import groupby import numpy as np import pandas as pd @@ -24,10 +25,9 @@ from pyomo.core.base.piecewise import IndexedPiecewise from pyomo.core.base.var import Var -from .helpers import flatten - from oemof.solph.components._generic_storage import GenericStorage +from .helpers import flatten PERIOD_INDEXES = ("invest", "total", "old", "old_end", "old_exo")