Skip to content

Commit

Permalink
bug fix in save_fit
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusSifft committed Sep 15, 2023
1 parent 5eda866 commit dcba793
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/signalsnap/spectrum_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,11 @@ def save_spec(self, save_path):
self.S_gpu = None
self.S_err_gpu = None
self.main_data = None
self.config.corr_data = None
self.config.data = None
# Only set to None if the attribute exists
if hasattr(self, 'config'):
self.config.corr_data = None
self.config.data = None

self.S_errs = None
self.S_stationarity_temp = None
pickle_save(save_path, self)
Expand Down

0 comments on commit dcba793

Please sign in to comment.