hydroflows.methods.events.Event#
- class hydroflows.methods.events.Event(*, name: str, root: Path | None = None, forcings: List[Forcing], return_period: float | None = None, tstart: datetime | None = None, tstop: datetime | None = None)[source]#
Bases:
BaseModel
A model event.
Examples
The event can be created as follows:
event = Event( name="event", forcings=[{"type": "rainfall", "path": "path/to/data.csv"}], return_period=2, )
- field forcings: List[Forcing] [Required]#
The list of forcings for the event. Each forcing is a dictionary with the structure as defined in
Forcing
.
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].