Changeset 1902 for trunk/GSASII.py


Ignore:
Timestamp:
Jun 22, 2015 11:42:30 AM (8 years ago)
Author:
vondreele
Message:

suppress editing of 1st twin element; it is always the identity matrix and frac is 1-Sum(other twin fr)
make FWHM consistent with measured FWHM for all lists & exports of peak lists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1875 r1902  
    30873087                                for peak in peaks:
    30883088                                    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)
    30903090                                        file.write("%10.5f %12.2f %10.5f %10.5f %10.5f \n" % \
    30913091                                            (peak[0],peak[2],np.sqrt(max(0.0001,peak[4]))/100.,peak[6]/100.,FWHM/100.)) #convert to deg
    30923092                                    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)
    30943094                                        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))
    30963096                            item2, cookie2 = self.PatternTree.GetNextChild(item, cookie2)                           
    30973097                    item, cookie = self.PatternTree.GetNextChild(self.root, cookie)                           
     
    31263126                                        file.write('%s \n'%('   h   k   l   m    d-space   2-theta       wid        F**2'))
    31273127                                    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])
    31293129                                        if 'T' in peaks.get('Type','PXC'):
    31303130                                            file.write(" %3d %3d %3d %3d %10.5f %10.2f %10.5f %10.3f \n" % \
     
    31323132                                        else:
    31333133                                            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]))
    31353135                            item2, cookie2 = self.PatternTree.GetNextChild(item, cookie2)                           
    31363136                    item, cookie = self.PatternTree.GetNextChild(self.root, cookie)                           
Note: See TracChangeset for help on using the changeset viewer.