Changeset 1483 for trunk/GSASII.py


Ignore:
Timestamp:
Sep 2, 2014 4:45:58 PM (9 years ago)
Author:
vondreele
Message:

fix Export of HKLs from PWDR histograms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1466 r1483  
    28392839                                    peaks = data[phase]
    28402840                                    file.write("%s %s %s \n" % (name,phase,' Reflection List'))
    2841                                     file.write('%s \n'%(' h  k  l  m  d-space 2-theta wid F**2'))               
    2842                                     for peak in peaks:
     2841                                    if 'T' in peaks.get('Type','PXC'):
     2842                                        file.write('%s \n'%('   h   k   l   m    d-space     TOF         wid        F**2'))
     2843                                    else:               
     2844                                        file.write('%s \n'%('   h   k   l   m    d-space   2-theta       wid        F**2'))
     2845                                    for peak in peaks['RefList']:
    28432846                                        FWHM = G2pwd.getgamFW(peak[7],peak[6])/50.      #to get delta-2-theta in deg.
    2844                                         file.write(" %3d %3d %3d %3d %10.5f %10.5f %10.5f %10.3f \n" % \
    2845                                             (int(peak[0]),int(peak[1]),int(peak[2]),int(peak[3]),peak[4],peak[5],FWHM,peak[8]))
     2847                                        if 'T' in peaks.get('Type','PXC'):
     2848                                            file.write(" %3d %3d %3d %3d %10.5f %10.2f %10.5f %10.3f \n" % \
     2849                                                (int(peak[0]),int(peak[1]),int(peak[2]),int(peak[3]),peak[4],peak[5],FWHM,peak[8]))
     2850                                        else:
     2851                                            file.write(" %3d %3d %3d %3d %10.5f %10.5f %10.5f %10.3f \n" % \
     2852                                                (int(peak[0]),int(peak[1]),int(peak[2]),int(peak[3]),peak[4],peak[5],FWHM,peak[8]))
    28462853                            item2, cookie2 = self.PatternTree.GetNextChild(item, cookie2)                           
    28472854                    item, cookie = self.PatternTree.GetNextChild(self.root, cookie)                           
Note: See TracChangeset for help on using the changeset viewer.