Changeset 4850 for trunk


Ignore:
Timestamp:
Mar 11, 2021 11:32:08 AM (2 years ago)
Author:
vondreele
Message:

fix LeBail? test to skip HKLF histograms in G2strMain
fix DBW access for old gpx files in G2dataGUI
fix Quaternion access for old gpx files in G2plot
add new testSytSym.py routine

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4847 r4850  
    72117211            ' Data residual wR: %.3f%% on %d observations'%(data[0]['wR'],data[0]['Nobs'])))
    72127212        if kind == 'PWDR':
    7213             DBW = ma.getdata(data[0]['Durbin-Watson'])
     7213            try:    #old gpx file
     7214                DBW = ma.getdata(data[0]['Durbin-Watson'])
     7215            except KeyError:
     7216                DBW = 1.0
    72147217            mainSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Durbin-Watson statistic: %.3f'%DBW))
    72157218        for value in data[0]:
  • trunk/GSASIIplot.py

    r4848 r4850  
    98649864    if 'Plane' not in drawingData:
    98659865        drawingData['Plane'] = [[0,0,1],False,False,0.0,[255,255,0]]
     9866    if 'Quaternion' not in drawingData:
     9867        drawingData['Quaternion'] = [0.,0.,0,1.]
    98669868    resRBData = data['RBModels'].get('Residue',[])
    98679869    vecRBData = data['RBModels'].get('Vector',[])
  • trunk/GSASIIstrMain.py

    r4849 r4850  
    509509            #phase['Histograms'][h]
    510510            if not phase['Histograms'][h]['Use']: continue
    511             if phase['Histograms'][h].get('LeBail',False):
    512                  return True
     511            try:
     512                if phase['Histograms'][h]['LeBail']:
     513                     return True
     514            except KeyError:    #HKLF & old gpx files
     515                pass
    513516    return False
    514517       
Note: See TracChangeset for help on using the changeset viewer.