Source code for hydpy.models.exch.exch_factors
# -*- coding: utf-8 -*-
# pylint: disable=missing-module-docstring
# import...
# ...from HydPy
from hydpy.core import sequencetools
from hydpy.core import variabletools
[docs]
class WaterLevels( # type: ignore[misc]
variabletools.MixinFixedShape, sequencetools.FactorSequence
):
"""The water level at two locations [m].
After each simulation step, the value of |exch_factors.WaterLevels| corresponds to
the value of the |LoggedWaterLevels| of the previous simulation step.
"""
NDIM = 1
SHAPE = (2,)
[docs]
class DeltaWaterLevel(sequencetools.FactorSequence):
"""Effective difference of the two water levels [m].
After each simulation step, the value of |DeltaWaterLevel| corresponds to the value
of the |LoggedWaterLevels| of the previous simulation step.
"""
NDIM = 0