Module: xrd.fitting

7 Functions

matchOmegas(xyo_det, hkls_idx, chi, rMat_c, bMat, wavelength, vInv=array([ 1., 1., 1., 0., 0., 0.]), beamVec=array([[-0.],
[-0.],
[-1.]]), etaVec=array([[ 1.],
[ 0.],
[ 0.]]), omePeriod=None)

For a given list of (x, y, ome) points, outputs the index into the results from oscillAnglesOfHKLs, including the calculated omega values.

hexrd.xrd.fitting.geomParamsToInput(tiltAngles, chi, expMap_c, tVec_d, tVec_s, tVec_c, dParams)[source]
hexrd.xrd.fitting.inputToGeomParams(p)[source]
calibrateDetectorFromSX(xyo_det, hkls_idx, bMat, wavelength, tiltAngles, chi, expMap_c, tVec_d, tVec_s, tVec_c, vInv=array([ 1., 1., 1., 0., 0., 0.]), beamVec=array([[-0.],
[-0.],
[-1.]]), etaVec=array([[ 1.],
[ 0.],
[ 0.]]), distortion=(<function GE_41RT at 0x7fb4870bf410>, [0.0, 0.0, 0.0, 2.0, 2.0, 2], array([False, False, False, False, False, False], dtype=bool), array([ 1., 1., 1., 1., 1., 1.])), pFlag=array([ True, True, True, True, True, True, False, False, False,
False, False, False, False, False, False, False], dtype=bool), pScl=array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), omePeriod=None, factor=0.1, xtol=0.0001, ftol=0.0001)
hexrd.xrd.fitting.objFuncSX(pFit, pFull, pFlag, dFunc, dFlag, xyo_det, hkls_idx, bMat, vInv, wavelength, bVec, eVec, omePeriod, simOnly=False, returnScalarValue=False)[source]
fitGrain(xyo_det, hkls_idx, bMat, wavelength, detectorParams, expMap_c, tVec_c, vInv, beamVec=array([[-0.],
[-0.],
[-1.]]), etaVec=array([[ 1.],
[ 0.],
[ 0.]]), distortion=(<function GE_41RT at 0x7fb4870bf410>, [0.0, 0.0, 0.0, 2.0, 2.0, 2]), gFlag=array([ True, True, True, True, True, True, True, True, True,
True, True, True], dtype=bool), gScl=array([ True, True, True, True, True, True, True, True, True,
True, True, True], dtype=bool), omePeriod=None, factor=0.1, xtol=0.0001, ftol=0.0001)
hexrd.xrd.fitting.objFuncFitGrain(gFit, gFull, gFlag, detectorParams, xyo_det, hkls_idx, bMat, wavelength, bVec, eVec, dFunc, dParams, omePeriod, simOnly=False, returnScalarValue=False)[source]

gFull[0] = expMap_c[0] gFull[1] = expMap_c[1] gFull[2] = expMap_c[2] gFull[3] = tVec_c[0] gFull[4] = tVec_c[1] gFull[5] = tVec_c[2] gFull[6] = vInv_MV[0] gFull[7] = vInv_MV[1] gFull[8] = vInv_MV[2] gFull[9] = vInv_MV[3] gFull[10] = vInv_MV[4] gFull[11] = vInv_MV[5]

detectorParams[0] = tiltAngles[0] detectorParams[1] = tiltAngles[1] detectorParams[2] = tiltAngles[2] detectorParams[3] = tVec_d[0] detectorParams[4] = tVec_d[1] detectorParams[5] = tVec_d[2] detectorParams[6] = chi detectorParams[7] = tVec_s[0] detectorParams[8] = tVec_s[1] detectorParams[9] = tVec_s[2]