pastas.model.Model.copy ======================= .. py:method:: pastas.model.Model.copy(name: str | None = None) -> pastas.typing.Model Method to copy a model. :param name: String with the name of the model. The old name plus is appended with '_copy' if no name is provided. :type name: str, optional :returns: **ml** -- Copy of the original model with no references to the old model. :rtype: pastas.model.Model .. rubric:: Examples >>> ml_copy = ml.copy(name="new_name") .. !! processed by numpydoc !!