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

pastas.model.Model.add_noisemodel#

Model.add_noisemodel(noisemodel)[source]#

Adds a noisemodel to the time series Model.

Parameters

noisemodel (pastas.noisemodels.NoiseModelBase) – Instance of NoiseModelBase.

Return type

None

Examples

>>> n = ps.ArNoiseModel()
>>> ml.add_noisemodel(n)

Notes

As of Pastas version 1.5.0, a noisemodel should be added to the model using this method, and is not added by default anymore when constructing as Pastas Model. If a noisemodel is present, it will always be used during optimization.