Skip to content

Commit e660351

Browse files
committed
changed deepcopy to copy in checksum_states (not sure whether this is ok)
1 parent 9896735 commit e660351

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pydra/engine/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import sys
1010
from pathlib import Path
1111
import typing as ty
12-
from copy import deepcopy
12+
from copy import deepcopy, copy
1313
from uuid import uuid4
1414
from filelock import SoftFileLock
1515
import shutil
@@ -286,10 +286,10 @@ def checksum_states(self, state_index=None):
286286
]
287287

288288
if state_index is not None:
289-
inputs_copy = deepcopy(self.inputs)
289+
inputs_copy = copy(self.inputs)
290290
for key, ind in self.state.inputs_ind[state_index].items():
291291
val = self._extract_input_el(
292-
inputs=inputs_copy, inp_nm=key.split(".")[1], ind=ind
292+
inputs=self.inputs, inp_nm=key.split(".")[1], ind=ind
293293
)
294294
setattr(inputs_copy, key.split(".")[1], val)
295295
# setting files_hash again in case it was cleaned by setting specific element

0 commit comments

Comments
 (0)