Skip to content

Commit

Permalink
make a copy of runtime in restore
Browse files Browse the repository at this point in the history
  • Loading branch information
daurer committed Feb 22, 2024
1 parent 1798bd1 commit 8732ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ptypy/core/ptycho.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8732ca3

Please sign in to comment.