Ignore:
Timestamp:
May 17, 2013 11:27:25 AM (10 years ago)
Author:
vondreele
Message:

add delt/sig column in some restraint tables
change testDeriv file name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIrestrGUI.py

    r906 r918  
    862862            rowLabels = []
    863863            bad = []
    864             Types = [wg.GRID_VALUE_STRING,]+3*[wg.GRID_VALUE_FLOAT+':10,3',]
     864            Types = [wg.GRID_VALUE_STRING,]+4*[wg.GRID_VALUE_FLOAT+':10,3',]
    865865            if 'macro' in General['Type']:
    866                 colLabels = ['(res) A - (res) B','calc','obs','esd']
     866                colLabels = ['(res) A - (res) B','calc','obs','esd','delt/sig']
    867867                for i,[indx,ops,obs,esd] in enumerate(bondList):
    868868                    try:
     
    873873                        XYZ = np.array(G2mth.GetAtomItemsById(Atoms,AtLookUp,indx,cx,3))
    874874                        calc = G2mth.getRestDist(XYZ,Amat)
    875                         table.append([name[:-3],calc,obs,esd])
     875                        table.append([name[:-3],calc,obs,esd,(obs-calc)/esd])
    876876                        rowLabels.append(str(i))               
    877877                    except KeyError:
     
    879879                        bad.append(i)
    880880            else:
    881                 colLabels = ['A+SymOp - B+SymOp','calc','obs','esd']
     881                colLabels = ['A+SymOp - B+SymOp','calc','obs','esd','delt/sig']
    882882                for i,[indx,ops,obs,esd] in enumerate(bondList):
    883883                    try:
     
    886886                        XYZ = G2mth.getSyXYZ(XYZ,ops,SGData)
    887887                        calc = G2mth.getRestDist(XYZ,Amat)
    888                         table.append([names[0]+'+('+ops[0]+') - '+names[1]+'+('+ops[1]+')',calc,obs,esd])
     888                        table.append([names[0]+'+('+ops[0]+') - '+names[1]+'+('+ops[1]+')',calc,obs,esd,(obs-calc)/esd])
    889889                        rowLabels.append(str(i))
    890890                    except KeyError:
     
    900900            Bonds.AutoSizeColumns(False)
    901901            for r in range(len(bondList)):
    902                 for c in range(2):
     902                for c in [0,1,4]:
    903903                    Bonds.SetReadOnly(r,c,True)
    904904                    Bonds.SetCellStyle(r,c,VERY_LIGHT_GREY,True)
     
    983983            rowLabels = []
    984984            bad = []
    985             Types = [wg.GRID_VALUE_STRING,]+3*[wg.GRID_VALUE_FLOAT+':10,2',]
     985            Types = [wg.GRID_VALUE_STRING,]+4*[wg.GRID_VALUE_FLOAT+':10,2',]
    986986            if 'macro' in General['Type']:
    987                 colLabels = ['(res) A - (res) B - (res) C','calc','obs','esd']
     987                colLabels = ['(res) A - (res) B - (res) C','calc','obs','esd','delt/sig']
    988988                for i,[indx,ops,obs,esd] in enumerate(angleList):
    989989                    try:
     
    994994                        XYZ = np.array(G2mth.GetAtomItemsById(Atoms,AtLookUp,indx,cx,3))
    995995                        calc = G2mth.getRestAngle(XYZ,Amat)
    996                         table.append([name[:-3],calc,obs,esd])
     996                        table.append([name[:-3],calc,obs,esd,(obs-calc)/esd])
    997997                        rowLabels.append(str(i))                               
    998998                    except KeyError:
     
    10001000                        bad.append(i)
    10011001            else:
    1002                 colLabels = ['A+SymOp - B+SymOp - C+SymOp','calc','obs','esd']
     1002                colLabels = ['A+SymOp - B+SymOp - C+SymOp','calc','obs','esd','delt/sig']
    10031003                for i,[indx,ops,obs,esd] in enumerate(angleList):
    10041004                    try:
     
    10091009                        XYZ = G2mth.getSyXYZ(XYZ,ops,SGData)
    10101010                        calc = G2mth.getRestAngle(XYZ,Amat)
    1011                         table.append([name,calc,obs,esd])
     1011                        table.append([name,calc,obs,esd,(obs-calc)/esd])
    10121012                        rowLabels.append(str(i))
    10131013                    except KeyError:
     
    10231023            Angles.AutoSizeColumns(False)
    10241024            for r in range(len(angleList)):
    1025                 for c in range(2):
     1025                for c in [0,1,4]:
    10261026                    Angles.SetReadOnly(r,c,True)
    10271027                    Angles.SetCellStyle(r,c,VERY_LIGHT_GREY,True)
     
    12261226            rowLabels = []
    12271227            bad = []
    1228             Types = [wg.GRID_VALUE_STRING,]+3*[wg.GRID_VALUE_FLOAT+':10,2',]
     1228            Types = [wg.GRID_VALUE_STRING,]+4*[wg.GRID_VALUE_FLOAT+':10,2',]
    12291229            if 'macro' in General['Type']:
    1230                 colLabels = ['(res) O (res) A (res) B (res) C','calc','obs','esd']
     1230                colLabels = ['(res) O (res) A (res) B (res) C','calc','obs','esd','delt/sig']
    12311231                for i,[indx,ops,obs,esd] in enumerate(volumeList):
    12321232                    try:
     
    12371237                        XYZ = np.array(G2mth.GetAtomItemsById(Atoms,AtLookUp,indx,cx,3))
    12381238                        calc = G2mth.getRestChiral(XYZ,Amat)
    1239                         table.append([name,calc,obs,esd])
     1239                        table.append([name,calc,obs,esd,(obs-calc)/esd]])
    12401240                        rowLabels.append(str(i))
    12411241                    except KeyError:
     
    12431243                        bad.append(i)
    12441244            else:
    1245                 colLabels = ['O+SymOp  A+SymOp  B+SymOp  C+SymOp)','calc','obs','esd']
     1245                colLabels = ['O+SymOp  A+SymOp  B+SymOp  C+SymOp)','calc','obs','esd','delt/sig']
    12461246                for i,[indx,ops,obs,esd] in enumerate(volumeList):
    12471247                    try:
     
    12521252                        XYZ = G2mth.getSyXYZ(XYZ,ops,SGData)
    12531253                        calc = G2mth.getRestChiral(XYZ,Amat)
    1254                         table.append([name,calc,obs,esd])
     1254                        table.append([name,calc,obs,esd,(obs-calc)/esd]])
    12551255                        rowLabels.append(str(i))
    12561256                    except KeyError:
     
    12661266            Volumes.AutoSizeColumns(False)
    12671267            for r in range(len(volumeList)):
    1268                 for c in range(2):
     1268                for c in [0,1,4]:
    12691269                    Volumes.SetReadOnly(r,c,True)
    12701270                    Volumes.SetCellStyle(r,c,VERY_LIGHT_GREY,True)
Note: See TracChangeset for help on using the changeset viewer.