Skip to content

Commit

Permalink
FIX: save energy in txt file in kEv (not as bin numbers)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgav committed Nov 6, 2023
1 parent 92f67c7 commit 7c930a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyxrf/model/fit_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7c930a6

Please sign in to comment.