From 8732ca33e02f61d452201ace28231ecbd82485f7 Mon Sep 17 00:00:00 2001 From: Benedikt Daurer Date: Thu, 22 Feb 2024 12:38:52 +0000 Subject: [PATCH] make a copy of runtime in restore --- ptypy/core/ptycho.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptypy/core/ptycho.py b/ptypy/core/ptycho.py index 18fd22c74..61dc1ccd6 100644 --- a/ptypy/core/ptycho.py +++ b/ptypy/core/ptycho.py @@ -1151,7 +1151,7 @@ def restore_state(self, name="baseline", reformat_exit=True): S.data[:] = self.state_dict[name]["ob"].storages[ID].data for ID,S in self.exit.storages.items(): S.data[:] = self.state_dict[name]["ex"].storages[ID].data - self.runtime = self.state_dict[name]["runtime"] + self.runtime = self.state_dict[name]["runtime"].copy(depth=99) # Reformat/Recalculate exit waves if reformat_exit: