pastas.model.Model.to_file#

Model.to_file(fname, series=True, **kwargs)[source]#

Method to save the Pastas model to a file.

Parameters
  • fname (str) – String with the name and the extension of the file. File extension has to be supported by Pastas. E.g. “model.pas”

  • series (bool or str, optional) – 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.

  • **kwargs – any argument that is passed to pastas.io.base.dump.

Return type

None

See also

pastas.io.base.dump