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

    optional parameters of the method, including: - parameters: dictionary containing the parameters of the playout, including:

    • smap: (if provided) stochastic map to be used to stochastically choose the transition

    • log: (if provided) EventLog to be used to compute the stochastic map, if smap not provided

Return type:


import pm4py

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