pm4py.objects.log.util.log module#
- pm4py.objects.log.util.log.get_event_labels(event_log, key)[source]#
Fetches the labels present in a log, given a key to use within the events.
- Parameters:
param event_log: log to use
param key: to use for event identification, can for example be “concept:name”
- Return type:
return: a list of labels
- pm4py.objects.log.util.log.get_event_labels_counted(event_log, key)[source]#
Fetches the labels (and their frequency) present in a log, given a key to use within the events.
- Parameters:
param event_log: log to use
param key: to use for event identification, can for example be “concept:name”
- Return type:
return: a list of labels
- pm4py.objects.log.util.log.get_trace_variants(event_log, key='concept:name')[source]#
Returns a pair of a list of (variants, dict[index -> trace]) where the index of a variant maps to all traces describing that variant, with that key.
- Parameters:
param event_log: log
param key: key to use to identify the label of an event
- Return type:
return:
- pm4py.objects.log.util.log.project_traces(event_log, keys='concept:name')[source]#
projects traces on a (set of) event attribute key(s). If the key provided is of type string, each trace is converted into a list of strings. If the key provided is a collection, each trace is converted into a list of (smaller) dicts of key value pairs
- Parameters:
event_log
keys
- Returns: