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

pastas.model.Model.copy#

Model.copy(name=None)[source]#

Method to copy a model.

Parameters

name (str, optional) – String with the name of the model. The old name plus is appended with ‘_copy’ if no name is provided.

Returns

ml – Copy of the original model with no references to the old model.

Return type

pastas.model.Model

Examples

>>> ml_copy = ml.copy(name="new_name")