Changeset 3058 for trunk/GSASIIphsGUI.py


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.