Changeset 3058


Ignore:
Timestamp:
Sep 9, 2017 8:18:29 AM (4 years ago)
Author:
vondreele
Message:

fix name problem in G2dataGUI; replace GetItemPyData? with GetItemText?
fix bugs in G2phsGUI - skip setting Mustrain & Hstrain unless PWDR data after space group change
need to sort deleted atom list then reverse & finally delete them

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3057 r3058  
    78067806        G2frame.PatternId = G2frame.GPXtree.GetItemParent(item)
    78077807        data = G2frame.GPXtree.GetItemPyData(item)
    7808         datatype = G2frame.GPXtree.GetItemPyData(G2frame.PatternId)[2][:4]
     7808        datatype = G2frame.GPXtree.GetItemText(G2frame.PatternId)[:4]
    78097809
    78107810        if 'Temperature' not in data:           #temp fix for old gpx files
  • trunk/GSASIIphsGUI.py

    r3054 r3058  
    14301430                NDij = len(G2spc.HStrainNames(SGData))
    14311431                for hist in data['Histograms']:
    1432                     data['Histograms'][hist]['Mustrain'][4:6] = [NShkl*[0.01,],NShkl*[False,]]
    1433                     data['Histograms'][hist]['HStrain'] = [NDij*[0.0,],NDij*[False,]]
     1432                    if 'HStrain' in data['Histograms'][hist]:       #PWDR only
     1433                        data['Histograms'][hist]['Mustrain'][4:6] = [NShkl*[0.01,],NShkl*[False,]]
     1434                        data['Histograms'][hist]['HStrain'] = [NDij*[0.0,],NDij*[False,]]
    14341435                wx.CallAfter(UpdateGeneral)
    14351436               
     
    29752976        if not indx: return
    29762977        atomData = data['Atoms']
     2978        indx.sort()
    29772979        indx.reverse()
    29782980        for ind in indx:
Note: See TracChangeset for help on using the changeset viewer.