Skip to content

Commit

Permalink
feat: added redchi and success to EDD nexus fit output results
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfverberg committed Oct 16, 2023
1 parent d889827 commit 7b9d050
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHAP/edd/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 7b9d050

Please sign in to comment.