pm4py.filtering.filter_ocel_objects#
- pm4py.filtering.filter_ocel_objects(ocel: OCEL, object_identifiers: Collection[str], positive: bool = True, level: int = 1) OCEL [source]#
Filters the object identifiers of an object-centric event log.
- Parameters:
ocel (
OCEL
) – object-centric event logobject_identifiers – object identifiers 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_objects(ocel, ['o1'], level=1)