pm4py.filtering.filter_ocel_cc_otype#
- pm4py.filtering.filter_ocel_cc_otype(ocel: OCEL, otype: str, positive: bool = True) OCEL [source]#
Filters the objects belonging to the connected components having at least an object of the provided object type.
Paper: Adams, Jan Niklas, et al. “Defining cases and variants for object-centric event data.” 2022 4th International Conference on Process Mining (ICPM). IEEE, 2022.
- Parameters:
ocel (
OCEL
) – object-centric event logotype (
str
) – object typepositive (
bool
) – boolean that keeps or discards the objects of these components
- Return type:
OCEL
import pm4py ocel = pm4py.read_ocel('log.jsonocel') filtered_ocel = pm4py.filter_ocel_cc_otype(ocel, 'order')