pm4py.filtering.filter_ocel_object_types#
- pm4py.filtering.filter_ocel_object_types(ocel: OCEL, obj_types: Collection[str], positive: bool = True, level: int = 1) OCEL [source]#
Filters the object types of an object-centric event log.
- Parameters:
ocel (
OCEL
) – object-centric event logobj_types – object types to keep/remove
positive (
bool
) – boolean value (True=keep, False=remove)level (
int
) – recursively expand the set of object identifiers until the specified level
- Return type:
OCEL
import pm4py ocel = pm4py.read_ocel('log.jsonocel') filtered_ocel = pm4py.filter_ocel_object_types(ocel, ['order'])