From 84e594e88f9171935ef3d92adfc8d636767adcb7 Mon Sep 17 00:00:00 2001 From: Sasha Rahlin Date: Tue, 14 Nov 2023 16:32:57 +1300 Subject: [PATCH] don't modify vars --- xfaster/xfaster_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xfaster/xfaster_class.py b/xfaster/xfaster_class.py index 23acdf49..efd2b335 100644 --- a/xfaster/xfaster_class.py +++ b/xfaster/xfaster_class.py @@ -1670,7 +1670,7 @@ def save_state(self, tag): standard file options are applied to produce the output filename. See ``get_filename`` for details. """ - data = vars(self) + data = vars(self).copy() data["data_version"] = self.data_version data.pop("logger")