pm4py.filtering.filter_ocel_cc_object#

pm4py.filtering.filter_ocel_cc_object(ocel: OCEL, object_id: str) OCEL[source]#

Returns the connected component of the object-centric event log to which the object with the provided identifier belongs.

Parameters:
  • ocel (OCEL) – object-centric event log

  • object_id (str) – object identifier

Return type:

OCEL

import pm4py

ocel = pm4py.read_ocel('log.jsonocel')
filtered_ocel = pm4py.filter_ocel_cc_object(ocel, 'order1')