From f0240670292086cb3b6fe523b1646dcfa4c71ddc Mon Sep 17 00:00:00 2001 From: Alessandro Berti Date: Tue, 26 Sep 2023 07:45:34 +0200 Subject: [PATCH] fix --- pm4py/objects/ocel/obj.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pm4py/objects/ocel/obj.py b/pm4py/objects/ocel/obj.py index 2c7310ffd..33d5c9667 100644 --- a/pm4py/objects/ocel/obj.py +++ b/pm4py/objects/ocel/obj.py @@ -100,7 +100,9 @@ def get_summary(self) -> str: return "".join(ret) def is_ocel20(self): - unique_qualifiers = [x for x in self.relations[self.qualifier].unique() if not self.__check_is_nan(x)] + unique_qualifiers = [] + if self.qualifier in self.relations.columns: + unique_qualifiers = [x for x in self.relations[self.qualifier].unique() if not self.__check_is_nan(x)] return len(self.o2o) > 0 or len(self.object_changes) > 0 or len(unique_qualifiers) > 0