hydroflows.methods.script.script_method#
Method to run python script with HydroFlows.
- class hydroflows.methods.script.script_method.ScriptMethod(script: Path, output: Dict[str, Path], input: Dict[str, Path] = None, params: Dict[str, Any] | None = None)[source]#
Method to run python script with HydroFlows.
- Parameters:
- property json_kwargs#
Return input, params and output as json string.
- pydantic model hydroflows.methods.script.script_method.ScriptInput[source]#
Output parameters for ScriptMethod class.
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.script.script_method.ScriptOutput[source]#
Input parameters for ScriptMethod class.
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.script.script_method.ScriptParams[source]#
Parameters for ScriptMethod class.
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.