pastas.io.base.dump#

pastas.io.base.dump(fname: str, data: dict, **kwargs)#

Method to save a pastas-model to a file.

Parameters:
  • fname (str) – string with the name of the file, including a supported file-extension. Currently supported extension are: .pas.

  • data (dict) – dictionary with the information to store.

  • kwargs – extension specific keyword arguments can be provided using kwargs.

Returns:

Message if the file-saving was successful.

Return type:

message

Notes

The specific dump-module is automatically chosen based on the provided file extension.