From ec456e66e5851cf89258b7729c9921c8f105f135 Mon Sep 17 00:00:00 2001 From: Tal Ben-Nun Date: Mon, 27 Nov 2023 08:25:36 -0800 Subject: [PATCH] Merge fix --- dace/sdfg/state.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dace/sdfg/state.py b/dace/sdfg/state.py index 7f816abdbb..64f47b14bf 100644 --- a/dace/sdfg/state.py +++ b/dace/sdfg/state.py @@ -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: