diff --git a/sed/calibrator/energy.py b/sed/calibrator/energy.py index a60c341e..a130f031 100644 --- a/sed/calibrator/energy.py +++ b/sed/calibrator/energy.py @@ -836,7 +836,8 @@ def append_energy_axis( binwidth = kwds.pop("binwidth", self.binwidth) binning = kwds.pop("binning", self.binning) - calibration = self.get_current_calibration() + if calibration is None: + calibration = self.get_current_calibration() for key, value in kwds.items(): calibration[key] = value