pastas.model.Model.set_oseries ============================== .. py:method:: pastas.model.Model.set_oseries(s: pandas.Series, metadata: dict[str, Any] | None = None) -> None Set a new oseries for an existing Model. :param s: The time series to be set as the oseries. :type s: pandas.Series :param metadata: Dictionary containing metadata about the time series. If None, the metadata from the existing oseries will be used. Te default is None. :type metadata: dict, optional .. rubric:: Notes This method replaces the existing oseries with a new TimeSeries object while preserving the original metadata if no new metadata is provided. .. !! processed by numpydoc !!