From 7b9d050bfbf7573a3dbd8d02dfec42969cfdd2cb Mon Sep 17 00:00:00 2001 From: Rolf Verberg Date: Mon, 16 Oct 2023 12:38:11 -0400 Subject: [PATCH] feat: added redchi and success to EDD nexus fit output results --- CHAP/edd/processor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHAP/edd/processor.py b/CHAP/edd/processor.py index 5c49258..ca0b27d 100755 --- a/CHAP/edd/processor.py +++ b/CHAP/edd/processor.py @@ -1017,6 +1017,8 @@ def linkdims(nxgroup, field_dims=[]): fit_nxdata.makelink(det_nxdata.energy) fit_nxdata.best_fit= fit.best_fit fit_nxdata.residuals = fit.residual + fit_nxdata.redchi = fit.redchi + fit_nxdata.success = fit.success # Peak-by-peak results # fit_nxgroup.fit_hkl_centers = NXdata() @@ -1203,6 +1205,8 @@ def animate(i): fit_nxdata.makelink(det_nxdata.energy) fit_nxdata.best_fit= fit.best_fit fit_nxdata.residuals = fit.residual + fit_nxdata.redchi = fit.redchi + fit_nxdata.success = fit.success # Peak-by-peak results fit_nxgroup.fit_hkl_centers = NXdata()