setLocation()

Signature:

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

Detailed Documentation

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

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 Location

loc: Location

ts2 = ts1.set_location("New_Location")

ts4 = ts3.set_location(loc)

Signature:

iset_location(value: Union[hec.Location, str]) -> TimeSeries

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

Example:

from hec import Location

loc: Location

ts1.iset_location("New_Location")

ts2.iset_location(loc)