ResolvedSimulationTimeWindow#

class hydromodpy.simulation.ResolvedSimulationTimeWindow(start, end, step_value, step_unit, coverage_policy)[source]#

Bases: object

Normalized runtime representation of [simulation.time].

Attributes are already validated and canonicalized: - datetimes parsed as pandas.Timestamp, - step values normalized to positive integer + explicit unit token, - policy constrained to error|warn|ignore.

Parameters:
  • start (Timestamp)

  • end (Timestamp)

  • step_value (int)

  • step_unit (Literal['hour', 'day', 'month', 'year'])

  • coverage_policy (Literal['error', 'warn', 'ignore'])

to_date_bounds()[source]#

Return inclusive date bounds as ISO YYYY-MM-DD strings.

This helper is mainly used by data APIs that consume date-only bounds.

Return type:

tuple[str, str]