Skip to content

Commit

Permalink
Define all "prepare methods" of specific submodel interfaces with a d…
Browse files Browse the repository at this point in the history
…efault implementation doing nothing instead of marking them as abstract (see #90 (comment)).
  • Loading branch information
tyralla committed May 3, 2023
1 parent 0803576 commit 9d87c81
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions hydpy/interfaces/aetinterfaces.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
"""This module defines submodel interfaces for calculating actual evapotranspiration."""
# import...
# ...from standard library
import abc

# ...from hydpy
from hydpy.core import modeltools
from hydpy.core.typingtools import *
Expand All @@ -14,21 +11,17 @@ class AETModel_V1(modeltools.SubmodelInterface):

typeid: ClassVar[Literal[1]] = 1

@abc.abstractmethod
def prepare_water(self, water: VectorInputBool) -> None:
"""Set the flags for whether the individual zones are water areas or not."""

@abc.abstractmethod
def prepare_interception(self, interception: VectorInputBool) -> None:
"""Set the flags for whether interception evaporation is relevant for the
individual zones."""

@abc.abstractmethod
def prepare_soil(self, soil: VectorInputBool) -> None:
"""Set the flags for whether soil evapotranspiration is relevant for the
individual zones."""

@abc.abstractmethod
def prepare_maxsoilwater(self, maxsoilwater: VectorInputFloat) -> None:
"""Set the maximum soil water content."""

Expand Down

0 comments on commit 9d87c81

Please sign in to comment.