Skip to content

Commit

Permalink
Merge pull request #88 from rolfverberg/main
Browse files Browse the repository at this point in the history
feat: added redchi and success to EDD nexus fit output results
  • Loading branch information
rolfverberg authored Oct 16, 2023
2 parents d889827 + 7b9d050 commit 9c3e3f2
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 9c3e3f2

Please sign in to comment.