pm4py.read.read_ptml#

pm4py.read.read_ptml(file_path: str, encoding: str = 'utf-8') ProcessTree[source]#

Reads a process tree object from a .ptml file.

Parameters:
  • file_path (str) – Path to the process tree file on disk.

  • encoding (str) – Encoding to be used (default: utf-8).

Return type:

ProcessTree

import pm4py

process_tree = pm4py.read_ptml("<path_to_ptml_file>")