pm4py.write.write_ptml#

pm4py.write.write_ptml(tree: ProcessTree, file_path: str) None[source]#

Writes a process tree object to disk in the .ptml format.

Parameters:
  • tree (ProcessTree) – ProcessTree object that needs to be written to disk

  • file_path (str) – target file path on disk of the .ptml file

import pm4py

log = pm4py.write_ptml(tree, '<path_to_export_to>')