hydromodpy.core.time.window#
Canonical simulation-time utilities for launcher workflows.
This module is intentionally a single authority for temporal behavior driven
by [simulation.time] so launchers, data loaders, and solver builders do
not reimplement similar logic with subtle differences.
Key conventions#
User input is an inclusive window:
[start_datetime, end_datetime].Internal period math is computed on half-open bounds:
[start_datetime, end_exclusive).Stress-period lengths are exported in seconds for solver-facing
lenper.Coverage checks can enforce one of three policies:
error/warn/ignore.
The functions below are pure helpers around these conventions, with explicit validation errors intended to be user-facing.
Functions
|
Apply resolved |
|
Return half-open simulation boundaries [t0, ..., tN] from one window. |
|
Return |
|
Return canonical launcher time-grid, enforcing it for flow runs. |
|
Resolve canonical stress periods from |
|
Resolve and validate the canonical simulation window. |
|
Resolve canonical simulation date bounds as |
|
Return a pandas-compatible frequency alias for one simulation window. |
|
Validate that recharge covers the canonical simulation window. |
Classes
|
Canonical stress-period mesh derived from one resolved window. |
|
Normalized runtime representation of |
|
Dedicated steady launcher time representation when |