From 68bf2b429301ba9298005b84a5bdb07119449013 Mon Sep 17 00:00:00 2001 From: Steinn Ymir Agustsson Date: Wed, 25 Oct 2023 22:55:52 +0200 Subject: [PATCH] bug fix --- sed/calibrator/energy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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