From 8be1b2bd23fb397e426adfa8a9f2bab4878bfde0 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Thu, 21 Nov 2024 15:54:22 +0100 Subject: [PATCH] fix copy() --- pyiron_base/project/delayed.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyiron_base/project/delayed.py b/pyiron_base/project/delayed.py index 59ef398fe..39fb0ff7b 100644 --- a/pyiron_base/project/delayed.py +++ b/pyiron_base/project/delayed.py @@ -241,6 +241,7 @@ def __init__( pass self.__name__ = "DelayedObject" self._result = None + self._python_function = None self._server = Server() self._output_key = output_key self._output_file = output_file @@ -294,6 +295,7 @@ def __copy__(self): list_length=self._list_length, list_index=self._list_index, ) + obj_copy._python_function = self._python_function obj_copy._input = self._input obj_copy._result = self._result obj_copy._server.from_dict(self._server.to_dict())