hydroflows.methods.dummy.prepare_dummy_events#
“Dummy methods for testing and user documentation.
- pydantic model hydroflows.methods.dummy.prepare_dummy_events.PrepareDummyEventsInput[source]#
Input files for the PrepareDummyEvents method.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Fields:
- pydantic model hydroflows.methods.dummy.prepare_dummy_events.PrepareDummyEventsOutput[source]#
Output files for the PrepareDummyEvents method.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- pydantic model hydroflows.methods.dummy.prepare_dummy_events.PrepareDummyEventsParams[source]#
Parameters for the PrepareDummyEvents method.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- field rps: <lambda>, json_schema_input_type=PydanticUndefined)] = [1, 10, 100, 1000]#
Return periods [years]
- class hydroflows.methods.dummy.prepare_dummy_events.PrepareDummyEvents(timeseries_csv: Path, output_dir: Path, rps: list[int] = [1, 10, 100, 1000], wildcard: str = 'return_period', **params)[source]#
Prepare events for some model.
- Parameters:
timeseries_csv (Path) – Input timeseries csv file
output_dir (Path) – Output directory
rps (List[int]) – Return periods [years]. This is used to expand the outputs and create a file for each return period.
wildcard (str) – Wildcard name used to expand the outputs over rps.
**params – Additional parameters for the method, see
PrepareDummyEventsParams
.
Create a new expand method instance.