From 7c930a62498a7013791c0530a1f560dca149133e Mon Sep 17 00:00:00 2001 From: Dmitri Gavrilov Date: Mon, 6 Nov 2023 18:38:21 -0500 Subject: [PATCH] FIX: save energy in txt file in kEv (not as bin numbers) --- pyxrf/model/fit_spectrum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyxrf/model/fit_spectrum.py b/pyxrf/model/fit_spectrum.py index 1b4f4309..5da27057 100644 --- a/pyxrf/model/fit_spectrum.py +++ b/pyxrf/model/fit_spectrum.py @@ -626,7 +626,7 @@ def output_summed_data_fit(self, save_fit=True, directory=None): if (xx is None) or (self.y0 is None) or (self.fit_y is None): msg = "Not enough data to save spectrum/fit data. Total spectrum fitting was not run." raise RuntimeError(msg) - data = np.array([self.x0, self.y0, self.fit_y]) + data = np.array([xx, self.y0, self.fit_y]) else: logger.info("Saving spectrum based on loaded or estimated parameters.") if (xx is None) or (self.y0 is None) or (self.param_model.total_y is None):