pastas.model.Model.to_file ========================== .. py:method:: pastas.model.Model.to_file(fname: str, series: bool | str = True, **kwargs) -> None Method to save the Pastas model to a file. :param fname: String with the name and the extension of the file. File extension has to be supported by Pastas. E.g. "model.pas" :type fname: str :param series: Export the simulated series or not. If series is "original", the original series are exported, if series is "modified", the series are exported after being changed with the time series settings. Default is True. :type series: bool | str, optional :param \*\*kwargs: any argument that is passed to :mod:`pastas.io.base.dump`. .. seealso:: :mod:`pastas.io.base.dump` .. !! processed by numpydoc !!