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")