diff --git a/src/signalsnap/spectrum_calculator.py b/src/signalsnap/spectrum_calculator.py index 70e3dff..434b7b2 100644 --- a/src/signalsnap/spectrum_calculator.py +++ b/src/signalsnap/spectrum_calculator.py @@ -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