setParameterPart()

Signature:

set_parameter(
    value: Union[hec.Parameter, str],
    in_place: bool = False
) -> TimeSeries

Detailed Documentation

The hec-python-library equivalent of Jython method setParameterPart():

If in_place=True, the instance itself is modified. In this case the returned value (which can be ignored in python) is the modified instance, which can be used in chaining methods.

Example:

from hec import Parameter

param: Parameter

ts2 = ts1.set_parameter("Flow")

ts4 = ts3.set_parameter(param)

Signature:

iset_parameter(value: Union[hec.Parameter, str]) -> TimeSeries

Convenience method for calling set_parameter(...) with in_place=True.

Example:

from hec import Parameter

param: Parameter

ts1.iset_parameter("Flow")

ts2.iset_parameter(param)