Changeset 2826 for trunk/GSASIIimage.py
- Timestamp:
- May 10, 2017 9:28:05 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIimage.py
r2824 r2826 1005 1005 ring.update(R) 1006 1006 p0 = ring['Emat'] 1007 val,esd = FitStrain(Ring,p0,dset,wave,phi,StaType)1007 val,esd,covMat = FitStrain(Ring,p0,dset,wave,phi,StaType) 1008 1008 ring['Emat'] = val 1009 1009 ring['Esig'] = esd … … 1014 1014 ringint /= np.mean(ringint) 1015 1015 ring['Ivar'] = np.var(ringint) 1016 ring['covMat'] = covMat 1016 1017 print 'Variance in normalized ring intensity: %.3f'%(ring['Ivar']) 1017 1018 CalcStrSta(StrSta,Controls) … … 1116 1117 vals = list(result[0]) 1117 1118 chisq = np.sum(result[2]['fvec']**2)/(rings.shape[1]-3) #reduced chi^2 = M/(Nobs-Nvar) 1119 covM = result[1] 1120 covMatrix = covM*chisq 1118 1121 sig = list(np.sqrt(chisq*np.diag(result[1]))) 1119 1122 ValSig = zip(names,fmt,vals,sig) 1120 1123 StrainPrint(ValSig,dset) 1121 return vals,sig 1124 return vals,sig,covMatrix 1122 1125 1123 1126 def AutoSpotMasks(Image,Masks,Controls):
Note: See TracChangeset
for help on using the changeset viewer.