- Timestamp:
- Apr 14, 2020 1:54:41 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r4324 r4401 2934 2934 2935 2935 def printSpHarm(textureData,SHtextureSig): 2936 Tindx = 1.0 2937 Tvar = 0.0 2936 2938 print ('\n Spherical harmonics texture: Order:' + str(textureData['Order'])) 2937 2939 names = ['omega','chi','phi'] … … 2962 2964 for name in SHkeys[iBeg:iFin]: 2963 2965 if 'C' in name: 2966 l = 2.0*eval(name.strip('C'))[0]+1 2967 Tindx += SHcoeff[name]**2/l 2964 2968 namstr += '%12s'%(name) 2965 2969 ptstr += '%12.3f'%(SHcoeff[name]) 2966 2970 if name in SHtextureSig: 2971 Tvar += (2.*SHcoeff[name]*SHtextureSig[name]/l)**2 2967 2972 sigstr += '%12.3f'%(SHtextureSig[name]) 2968 2973 else: … … 2973 2978 iBeg += 10 2974 2979 iFin = min(iBeg+10,nCoeff) 2980 print(' Texture index J = %.3f(%d)'%(Tindx,int(1000*np.sqrt(Tvar)))) 2975 2981 2976 2982 def Dict2Values(parmdict, varylist): -
trunk/GSASIIphsGUI.py
r4400 r4401 4559 4559 molecSizer.Add(makePDB,0,WACV) 4560 4560 mainSizer.Add(molecSizer,0,WACV) 4561 G2G.HorizontalLine(mainSizer,G2frame.FRMC) 4561 4562 4562 4563 mainSizer.Add(GetAtmChoice(RMCPdict),0,WACV) … … 11010 11011 if Error: 11011 11012 wx.MessageBox(Error,caption='Fit Texture Error',style=wx.ICON_EXCLAMATION) 11012 # x = []11013 # y = []11014 11013 XY = [] 11015 11014 for hist in keyList: … … 11018 11017 xy = [x,y] 11019 11018 XY.append(np.array(xy)) 11020 # XY = np.array(XY)11021 11019 G2plt.PlotXY(G2frame,XY,XY2=[],labelX='POobs',labelY='POcalc',newPlot=False,Title='Texture fit error') 11022 11020 UpdateTexture() -
trunk/GSASIIstrIO.py
r4399 r4401 2165 2165 2166 2166 def PrintSHtextureAndSig(textureData,SHtextureSig): 2167 Tindx = 1.0 2168 Tvar = 0.0 2167 2169 pFile.write('\n Spherical harmonics texture: Order: %d\n'%textureData['Order']) 2168 2170 names = ['omega','chi','phi'] … … 2194 2196 namstr += '%12s'%(name) 2195 2197 ptstr += '%12.3f'%(SHcoeff[name]) 2198 l = 2.0*eval(name.strip('C'))[0]+1 2199 Tindx += SHcoeff[name]**2/l 2196 2200 if name in SHtextureSig: 2201 Tvar += (2.*SHcoeff[name]*SHtextureSig[name]/l)**2 2197 2202 sigstr += '%12.3f'%(SHtextureSig[name]) 2198 2203 else: … … 2203 2208 iBeg += 10 2204 2209 iFin = min(iBeg+10,nCoeff) 2210 pFile.write(' Texture index J = %.3f(%d)'%(Tindx,int(1000*np.sqrt(Tvar)))) 2205 2211 2206 2212 ########################################################################## … … 2916 2922 2917 2923 def PrintSHPOAndSig(pfx,hapData,POsig): 2924 Tindx = 1.0 2925 Tvar = 0.0 2918 2926 pFile.write('\n Spherical harmonics preferred orientation: Order: %d\n'%hapData[4]) 2919 2927 ptlbls = ' names :' … … 2923 2931 ptlbls += '%12s'%(item) 2924 2932 ptstr += '%12.3f'%(hapData[5][item]) 2933 l = 2.0*eval(item.strip('C'))[0]+1 2934 Tindx += hapData[5][item]**2/l 2925 2935 if pfx+item in POsig: 2936 Tvar += (2.*hapData[5][item]*POsig[pfx+item]/l)**2 2926 2937 sigstr += '%12.3f'%(POsig[pfx+item]) 2927 2938 else: … … 2930 2941 pFile.write(ptstr+'\n') 2931 2942 pFile.write(sigstr+'\n') 2943 pFile.write('\n Texture index J = %.3f(%d)\n'%(Tindx,int(1000*np.sqrt(Tvar)))) 2932 2944 2933 2945 def PrintExtAndSig(pfx,hapData,ScalExtSig):
Note: See TracChangeset
for help on using the changeset viewer.