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 dcba793 commit dc43681
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/signalsnap/spectrum_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ def save_spec(self, save_path):
self.S_gpu = None
self.S_err_gpu = None
self.main_data = None

# Only set to None if the attribute exists
if hasattr(self, 'config'):
self.config.corr_data = None
Expand Down

0 comments on commit dc43681

Please sign in to comment.