Skip to content

Commit

Permalink
Merge branch 'PMPY-2104' into 'integration'
Browse files Browse the repository at this point in the history
PMPY-2104 Fix problem OCEL copy/deepcopy

Closes PMPY-2104

See merge request process-mining/pm4py/pm4py-core!1005
  • Loading branch information
fit-alessandro-berti committed Jun 30, 2023
2 parents 2705b6b + 888429f commit 437a8c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pm4py/objects/ocel/obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def __repr__(self):
return str(self.get_summary())

def __copy__(self):
return OCEL(self.events, self.objects, self.relations, copy(self.globals), copy(self.parameters), copy(self.o2o), copy(self.e2e))
return OCEL(self.events, self.objects, self.relations, copy(self.globals), copy(self.parameters), copy(self.o2o), copy(self.e2e), copy(self.object_changes))

def __deepcopy__(self, memo):
return OCEL(self.events.copy(), self.objects.copy(), self.relations.copy(), deepcopy(self.globals),
deepcopy(self.parameters), deepcopy(self.o2o), deepcopy(self.e2e))
deepcopy(self.parameters), deepcopy(self.o2o), deepcopy(self.e2e), deepcopy(self.object_changes))

0 comments on commit 437a8c8

Please sign in to comment.