Changeset 1902 for trunk/GSASII.py
- Timestamp:
- Jun 22, 2015 11:42:30 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r1875 r1902 3087 3087 for peak in peaks: 3088 3088 if len(peak) == 8: #CW 3089 FWHM = G2pwd.getgamFW(peak[6],peak[4])3089 FWHM = 2.*G2pwd.getgamFW(peak[6],peak[4]) #to get delta-2-theta in deg. from Gam(peak) 3090 3090 file.write("%10.5f %12.2f %10.5f %10.5f %10.5f \n" % \ 3091 3091 (peak[0],peak[2],np.sqrt(max(0.0001,peak[4]))/100.,peak[6]/100.,FWHM/100.)) #convert to deg 3092 3092 else: #TOF - more cols 3093 FWHM = G2pwd.getgamFW(peak[10],peak[8])3093 FWHM = 2.*G2pwd.getgamFW(peak[10],peak[8]) #to get delta-TOF from Gam(peak) 3094 3094 file.write("%10.5f %12.2f %10.3f %10.3f %10.3f %10.3f %10.3f\n" % \ 3095 (peak[0],peak[2], peak[4],peak[6],peak[8],peak[10],FWHM))3095 (peak[0],peak[2],np.sqrt(max(0.0001,peak[4])),peak[6],peak[8],peak[10],FWHM)) 3096 3096 item2, cookie2 = self.PatternTree.GetNextChild(item, cookie2) 3097 3097 item, cookie = self.PatternTree.GetNextChild(self.root, cookie) … … 3126 3126 file.write('%s \n'%(' h k l m d-space 2-theta wid F**2')) 3127 3127 for peak in peaks['RefList']: 3128 FWHM = G2pwd.getgamFW(peak[7],peak[6])/50. #to get delta-2-theta in deg.3128 FWHM = 2.*G2pwd.getgamFW(peak[7],peak[6]) 3129 3129 if 'T' in peaks.get('Type','PXC'): 3130 3130 file.write(" %3d %3d %3d %3d %10.5f %10.2f %10.5f %10.3f \n" % \ … … 3132 3132 else: 3133 3133 file.write(" %3d %3d %3d %3d %10.5f %10.5f %10.5f %10.3f \n" % \ 3134 (int(peak[0]),int(peak[1]),int(peak[2]),int(peak[3]),peak[4],peak[5],FWHM ,peak[8]))3134 (int(peak[0]),int(peak[1]),int(peak[2]),int(peak[3]),peak[4],peak[5],FWHM/100.,peak[8])) 3135 3135 item2, cookie2 = self.PatternTree.GetNextChild(item, cookie2) 3136 3136 item, cookie = self.PatternTree.GetNextChild(self.root, cookie)
Note: See TracChangeset
for help on using the changeset viewer.