pastas.stressmodels.WellModel.set_stress ======================================== .. py:method:: pastas.stressmodels.WellModel.set_stress(stress: pandas.Series | list[pandas.Series] | pastas.timeseries.TimeSeries | list[pastas.timeseries.TimeSeries], settings: str | pastas.typing.StressSettingsDict | list[str] | list[pastas.typing.StressSettingsDict] | None = None, metadata: dict[str, Any] | list[dict[str, Any]] | 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 !!