Skip to content

Commit

Permalink
issue #126: return minimum fit error in area detector calib
Browse files Browse the repository at this point in the history
  • Loading branch information
dkriegner committed Nov 22, 2021
1 parent d1d6b32 commit c2b0ecf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/xrayutilities/analysis/sample_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ def area_detector_calib(angle1, angle2, ccdimages, detaxis, r_i, plot=True,
"OUTER DETECTOR ANGLE!" % (outerangle_offset))

return (cch1, cch2, pwidth1, pwidth2, distance, tiltazimuth,
tilt, detrot, outerangle_offset), eps
tilt, detrot, outerangle_offset), epsmin


def _peak_position(img, nwindow, plot=False):
Expand Down Expand Up @@ -1541,7 +1541,8 @@ def area_detector_calib_hkl(sampleang, angle1, angle2, ccdimages, hkls,
"OUTER DETECTOR ANGLE!" % (outerangle_offset))

return (cch1, cch2, pwidth1, pwidth2, distance, tiltazimuth,
tilt, detrot, outerangle_offset, stilt, stazimuth, wavelength), eps
tilt, detrot, outerangle_offset, stilt, stazimuth,
wavelength), epsmin


def _area_detector_calib_fit2(sang, ang1, ang2, n1, n2, hkls, experiment,
Expand Down

0 comments on commit c2b0ecf

Please sign in to comment.