Changeset 857
- Timestamp:
- Feb 24, 2013 9:31:41 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r856 r857 756 756 exclList = ['X' for i in range(len(rbObj['Ids']))] 757 757 rbAtmDict.update(dict(zip(rbObj['Ids'],exclList))) 758 # for vector one exclList will be 'x' or 'xu' if TLS used in RB 758 if rbObj['ThermalMotion'][0] != 'None': 759 for id in rbObj['Ids']: 760 rbAtmDict[id] += 'U' 761 # exclList will be 'x' or 'xu' if TLS used in RB 759 762 Items = [G2gd.wxID_ATOMSEDITINSERT,G2gd.wxID_ATOMSEDITDELETE,G2gd.wxID_ATOMSREFINE, 760 763 G2gd.wxID_ATOMSMODIFY,G2gd.wxID_ATOMSTRANSFORM,G2gd.wxID_ATOMVIEWINSERT,G2gd.wxID_ATOMMOVE] … … 912 915 if not Atoms.IsReadOnly(r,c): 913 916 if Atoms.GetColLabelValue(c) == 'refine': 914 atomData[r][c] = parms.replace(rbAtmDict.get(atomData[r][-1],''),'') 917 rbExcl = rbAtmDict.get(atomData[r][-1],'') 918 for excl in rbExcl: 919 atomData[r][c] = parms.replace(excl,'') 915 920 else: 916 921 atomData[r][c] = parms … … 1093 1098 for row in range(Atoms.GetNumberRows()): 1094 1099 atId = atomData[row][-1] 1095 if 'X' in rbAtmDict.get(atId,''): 1100 rbExcl = rbAtmDict.get(atId,'') 1101 if 'X' in rbExcl: 1096 1102 for c in range(0,colX+3): 1097 1103 if c != colR: … … 1108 1114 Atoms.SetCellTextColour(row,ci,BLACK) 1109 1115 Atoms.SetCellStyle(row,ci,VERY_LIGHT_GREY,True) 1110 if CSI[2][i] :1116 if CSI[2][i] and 'U' not in rbExcl: 1111 1117 Atoms.SetCellStyle(row,ci,WHITE,False) 1112 1118 else: 1113 1119 Atoms.SetCellStyle(row,colUiso,WHITE,False) 1114 1120 Atoms.SetCellTextColour(row,colUiso,BLACK) 1121 if 'U' in rbExcl: 1122 Atoms.SetCellStyle(row,colUiso,VERY_LIGHT_GREY,True) 1115 1123 for i in range(6): 1116 1124 ci = colU11+i
Note: See TracChangeset
for help on using the changeset viewer.