hec.shared
dss_imported =
False
cwms_imported =
False
required_cwms_version =
">= '0.8.2'"
required_dss_version =
">= '0.1.28'"
class
RatingSetRetrievalMethod(enum.Enum):
Specifies method of retrieval of AbstractRatingSet from data stores.
EAGER =
<RatingSetRetrievalMethod.EAGER: (1, 'Retrieve all TableRating values when rating set is retrieved')>
LAZY =
<RatingSetRetrievalMethod.LAZY: (2, 'Retrieve TableRating values only when first needed')>
REFERENCE =
<RatingSetRetrievalMethod.REFERENCE: (3, 'Retrieve only information necessary to send data to database to be rated')>
def
import_cwms() -> module:
def
import_hecdss() -> module:
def
is_leap(y: int) -> bool:
Return whether the specified year is a leap year
Arguments:
- y (int): The year
Returns:
bool: Whether the year is a leap year
def
max_day(y: int, m: int) -> int:
Return the last month day for a specified year and month
Arguments:
- y (int): The year
- m (int): The month
Returns:
int: The last calendar day of the specified month
def
previous_month(y: int, m: int) -> tuple[int, int]:
Returns the previous year and for a specified year and month.
Arguments:
- y (int): The specified year
- m (int): The specified month
Returns:
tuple[int, int]: The previous year and month
class
RatingException(builtins.Exception):
Base exception for all rating exceptions