The default behavior for adding and solving with noisemodels has changed from Pastas 1.5. Find more information here

pastas.model.Model.add_constant#

Model.add_constant(constant)[source]#

Add a Constant to the time series Model.

Parameters

constant (pastas.stressmodels.Constant) – Pastas constant instance.

Return type

None

Examples

>>> d = ps.Constant()
>>> ml.add_constant(d)