Changeset 1596


Ignore:
Timestamp:
Dec 5, 2014 1:50:37 PM (9 years ago)
Author:
vondreele
Message:

some bug fixes

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIlattice.py

    r1594 r1596  
    877877                    if G2spc.checkSSextc(HKLM,SSGData):
    878878                        HKLs.append([h,k,l,dH,d])   
    879     return sortHKLd(HKLs,True,True,True)
     879    return HKLs
    880880
    881881#Spherical harmonics routines
  • trunk/GSASIIphsGUI.py

    r1595 r1596  
    50115011           
    50125012        # FillPawleyReflectionsGrid executable starts here
    5013         G2frame.dataFrame.SetStatusText('To delete a few Pawley reflections: select rows & press Delete')                       
     5013        G2frame.dataFrame.SetStatusText('To delete a Pawley reflection: select row & press Delete')                       
    50145014        generalData = data['General']
    50155015        if 'Pawley ref' in data:
     
    50595059                        mul *= 2        #for powder multiplicity
    50605060                        PawleyPeaks.append([h,k,l,m,mul,d,False,100.0,1.0])
     5061                PawleyPeaks = G2mth.sortArray(PawleyPeaks,5,reverse=True)
    50615062            finally:
    50625063                wx.EndBusyCursor()
     
    50695070                        mul *= 2        #for powder multiplicity
    50705071                        PawleyPeaks.append([h,k,l,mul,d,False,100.0,1.0])
     5072                PawleyPeaks = G2mth.sortArray(PawleyPeaks,4,reverse=True)
    50715073            finally:
    50725074                wx.EndBusyCursor()
  • trunk/GSASIIplot.py

    r1592 r1596  
    13541354                try:
    13551355                    for peak in Phases[G2frame.RefList]['RefList']:
    1356                         HKL.append(peak[:6])
     1356                        if len(peak) > 15:
     1357                            HKL.append(peak[:7])
     1358                        else:
     1359                            HKL.append(peak[:6])
    13571360                except TypeError:   #old style patch
    13581361                    for peak in Phases[G2frame.RefList]:
     
    16391642                if not len(peaks):
    16401643                    continue
    1641                 peak = np.array([[peak[4],peak[5]] for peak in peaks])
     1644                if len(peaks[0]) > 15:
     1645                    peak = np.array([[peak[5],peak[6]] for peak in peaks])
     1646                else:
     1647                    peak = np.array([[peak[4],peak[5]] for peak in peaks])
    16421648                pos = G2frame.refOffset-pId*Ymax*G2frame.refDelt*np.ones_like(peak)
    16431649                if G2frame.qPlot:
  • trunk/GSASIIstrIO.py

    r1595 r1596  
    19071907                    if hapData['Babinet']['BabA'][0]:
    19081908                        PrintBabinet(hapData['Babinet'])                       
    1909                 if Phases[phase]['General']['Type'] in ['modulated','magnetic']:
    1910                     HKLd = G2lat.GenSSHLaue(dmin,SGData,SSGData,Vec,maxH,A)
    1911                 else:
    1912                     HKLd = np.array(G2lat.GenHLaue(dmin,SGData,A))
    19131909                if resetRefList:
    19141910                    refList = []
     
    19161912                    Phi = []
    19171913                    if Phases[phase]['General']['Type'] in ['modulated','magnetic']:
     1914                        HKLd = np.array(G2lat.GenSSHLaue(dmin,SGData,SSGData,Vec,maxH,A))
     1915                        HKLd = G2mth.sortArray(HKLd,4,reverse=True)
    19181916                        for h,k,l,m,d in HKLd:
    19191917                            ext,mul,uniq,phi = G2spc.GenHKLf([h,k,l],SGData)    #is this right for SS refl.??
     
    19361934                                        Phi.append(phi)
    19371935                    else:
     1936                        HKLd = np.array(G2lat.GenHLaue(dmin,SGData,A))
     1937                        HKLd = G2mth.sortArray(HKLd,3,reverse=True)
    19381938                        for h,k,l,d in HKLd:
    19391939                            ext,mul,uniq,phi = G2spc.GenHKLf([h,k,l],SGData)
  • trunk/GSASIIstrMath.py

    r1595 r1596  
    18951895                    names.update({hfx+'Absorption':[dFdAb,'int'],})
    18961896            else:   #'T'OF
    1897                 dpdA,dpdZ,dpdDC,dpdDA,dpdDB = GetReflPosDerv(refl,0.0,A,hfx,calcControls,parmDict)
     1897                dpdA,dpdZ,dpdDC,dpdDA,dpdDB = GetReflPosDerv(refl,im,0.0,A,hfx,calcControls,parmDict)
    18981898                names = {hfx+'Scale':[dIdsh,'int'],phfx+'Scale':[dIdsp,'int'],
    18991899                    hfx+'difC':[dpdDC,'pos'],hfx+'difA':[dpdDA,'pos'],hfx+'difB':[dpdDB,'pos'],
Note: See TracChangeset for help on using the changeset viewer.