pastas.stressmodels.ChangeModel.set_stress ========================================== .. py:method:: pastas.stressmodels.ChangeModel.set_stress(stress: pandas.Series | pastas.timeseries.TimeSeries, settings: str | pastas.typing.StressSettingsDict | None = None, metadata: dict | None = None) -> None Set the stress time series. :param stress: pandas.Series with pandas.DatetimeIndex containing the stress or a pastas TimeSeries object. :type stress: pandas.Series or pastas.TimeSeries :param settings: The settings of the stress. This can be a string referring to a predefined settings dictionary (defined in ps.rcParams["timeseries"]), or a dictionary with the settings to apply. For more information refer to time series settings section on class initialization. :type settings: dict or str, optional :param metadata: Dictionary with metadata of the stress time series. :type metadata: dict, optional .. !! processed by numpydoc !!