Changeset 1779 for trunk/GSASII.py


Ignore:
Timestamp:
Apr 6, 2015 3:45:25 PM (8 years ago)
Author:
vondreele
Message:

Add FWHM to exported peak lists
change default F2 refinement to False
Add histogram name to axial dist plots from DData

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1776 r1779  
    30843084                                file.write("%s \n" % (name+' Peak List'))
    30853085                                if len(peaks[0]) == 8:
    3086                                     file.write('%10s %12s %10s %10s\n'%('pos','int','sig','gam'))
     3086                                    file.write('%10s %12s %10s %10s %10s\n'%('pos','int','sig','gam','FWHM'))
    30873087                                else:
    3088                                     file.write('%10s %12s %10s %10s %10s %10s\n'%('pos','int','alp','bet','sig','gam'))                                   
     3088                                    file.write('%10s %12s %10s %10s %10s %10s %10s\n'%('pos','int','alp','bet','sig','gam','FWHM'))                                   
    30893089                                for peak in peaks:
    30903090                                    if len(peak) == 8:  #CW
    3091                                         file.write("%10.5f %12.2f %10.3f %10.3f \n" % \
    3092                                             (peak[0],peak[2],peak[4],peak[6]))
     3091                                        FWHM = G2pwd.getgamFW(peak[6],peak[4])
     3092                                        file.write("%10.5f %12.2f %10.3f %10.3f %10.3f \n" % \
     3093                                            (peak[0],peak[2],peak[4],peak[6],FWHM))
    30933094                                    else:               #TOF - more cols
    3094                                         file.write("%10.5f %12.2f %10.3f %10.3f %10.3f %10.3f\n" % \
    3095                                             (peak[0],peak[2],peak[4],peak[6],peak[8],peak[10]))
     3095                                        FWHM = G2pwd.getgamFW(peak[10],peak[8])
     3096                                        file.write("%10.5f %12.2f %10.3f %10.3f %10.3f %10.3f %10.3f\n" % \
     3097                                            (peak[0],peak[2],peak[4],peak[6],peak[8],peak[10],FWHM))
    30963098                            item2, cookie2 = self.PatternTree.GetNextChild(item, cookie2)                           
    30973099                    item, cookie = self.PatternTree.GetNextChild(self.root, cookie)                           
Note: See TracChangeset for help on using the changeset viewer.