Skip to content

Commit

Permalink
Merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun committed Nov 27, 2023
1 parent 4b5e2c2 commit ec456e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dace/sdfg/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,11 +1197,11 @@ def __deepcopy__(self, memo):
result = cls.__new__(cls)
memo[id(self)] = result
for k, v in self.__dict__.items():
if k == '_parent': # Skip derivative attributes
if k in ('_parent_graph', '_sdfg'): # Skip derivative attributes
continue
setattr(result, k, copy.deepcopy(v, memo))

for k in ('_parent',):
for k in ('_parent_graph', '_sdfg'):
if id(getattr(self, k)) in memo:
setattr(result, k, memo[id(getattr(self, k))])
else:
Expand Down

0 comments on commit ec456e6

Please sign in to comment.