pm4py.sim.play_out(*args: Union[Tuple[PetriNet, Marking, Marking], dict, Counter, ProcessTree], **kwargs) EventLog[source]#

Performs the playout of the provided model, i.e., gets a set of traces from the model. The function either takes a petri net, initial and final marking, or, a process tree as an input.

  • args – model (Petri net with initial and final marking, or process tree)

  • kwargs – dictionary containing the parameters of the playout

Return type:


import pm4py

net, im, fm = pm4py.read_pnml('model.pnml')
log = pm4py.play_out(net, im, fm)