Changeset 1606
- Timestamp:
- Dec 13, 2014 10:51:53 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r1605 r1606 2749 2749 if len(refList): 2750 2750 for i,item in DelList: 2751 del(refList[item]) 2751 if item in refList: 2752 del(refList[item]) 2752 2753 self.PatternTree.SetItemPyData(Id,refList) 2753 2754 item, cookie = self.PatternTree.GetNextChild(self.root, cookie) -
trunk/GSASIIobj.py
r1604 r1606 1294 1294 'RBR([TLS])([123AB][123AB])' : 'Residue rigid body group disp. param.', 1295 1295 'constr([0-9]*)' : 'Parameter from constraint', 1296 # supersymmetry parameters 1296 # supersymmetry parameters 'Flen','Fcent'? 1297 1297 'mV([0-2])' : 'Modulation vector component \\1', 1298 # 'Flen','Fcent','Fsin','Fcos' 1298 'Fsin' : 'Sin site fraction modulation', 1299 'Fcos' : 'Cos site fraction modulation', 1299 1300 '[XYZ]sin' : 'Sin position wave for \\1', 1300 1301 '[XYZ]cos' : 'Cos position wave for \\1', -
trunk/GSASIIphsGUI.py
r1605 r1606 3972 3972 if refresh: 3973 3973 RigidBodies.DestroyChildren() 3974 AtLookUp = G2mth.FillAtomLookUp(data['Atoms'])3975 3974 general = data['General'] 3976 cx = general['AtomPtrs'][0] 3975 cx,ct,cs,cia = generalData['AtomPtrs'] 3976 AtLookUp = G2mth.FillAtomLookUp(data['Atoms'],cia+8) 3977 3977 Amat,Bmat = G2lat.cell2AB(general['Cell'][1:7]) 3978 3978 RBData = G2frame.PatternTree.GetItemPyData( … … 4344 4344 RBIds = dict(zip(RBNames,rbKeys)) 4345 4345 general = data['General'] 4346 cx,ct,cs,cia = generalData['AtomPtrs'] 4346 4347 Amat,Bmat = G2lat.cell2AB(general['Cell'][1:7]) 4347 4348 Atoms = data['Atoms'] 4348 AtLookUp = G2mth.FillAtomLookUp(Atoms )4349 AtLookUp = G2mth.FillAtomLookUp(Atoms,cia+8) 4349 4350 if 'macro' not in general['Type']: 4350 4351 print '**** ERROR - this phase is not a macromolecule ****' … … 4429 4430 4430 4431 def OnGlobalResRBTherm(event): 4431 AtLookUp = G2mth.FillAtomLookUp(data['Atoms'])4432 4432 RBObjs = data['RBModels']['Residue'] 4433 4433 names = ['None','Uiso','T','TL','TLS'] 4434 4434 cia = data['General']['AtomPtrs'][3] 4435 AtLookUp = G2mth.FillAtomLookUp(data['Atoms'],cia+8) 4435 4436 dlg = wx.SingleChoiceDialog(G2frame,'Select','Residue thermal motion model',names) 4436 4437 if dlg.ShowModal() == wx.ID_OK: -
trunk/GSASIIspc.py
r1602 r1606 1283 1283 return KNsym[key] 1284 1284 1285 def GetNXUPQsym(siteSym): 1286 'Needs a doc string' 1285 def GetNXUPQsym(siteSym): 1286 ''' 1287 The codes XUPQ are for lookup of symmetry constraints for position(X), thermal parm(U) & magnetic moments 1288 (P&Q-not used in GSAS-II) 1289 ''' 1287 1290 NXUPQsym = { 1288 1291 ' 1 ':(28,29,28,28),' -1 ':( 1,29,28, 0),' 2(x)':(12,18,12,25),' m(x)':(25,18,12,25), … … 2061 2064 '(00g)','(1/21/2g)0q0','(1/21/2g)q00','(a00)','(a1/21/2)00q','(b1/21/2)0q0',], 2062 2065 #35 2063 'C m m 2':[], 2064 'A 2 m m':[], 2065 'B m 2 m':[], 2066 'C m m 2':['(00g)','(00g)s0s','(00g)0ss','(00g)ss0','(10g)','(10g)s0s','(10g)0ss','(10g)ss0', 2067 '(01g)','(01g)s0s','(01g)0ss','(01g)ss0','(a00)','(a00)0s0','(a01/2)','(a01/2)0s0', 2068 '(0b0)','(0b0)s00','(0b1/2)','(0b1/2)s00',], 2069 'A 2 m m':['(a00)','(a00)s0s','(a00)0ss','(a00)ss0','(a10)','(a10)s0s','(a10)0ss','(a10)ss0', 2070 '(a01)','(a01)s0s','(a01)0ss','(a01)ss0','(0b0)','(0b0)00s','(1/2b0)','(1/2b0)00s', 2071 '(00g)','(00g)0s0','(01/2g)','(01/2g)0s0',], 2072 'B m 2 m':['(0b0)','(0b0)s0s','(0b0)0ss','(0b0)ss0','(1b0)','(1b0)s0s','(1b0)0ss','(1b0)ss0', 2073 '(0b1)','(0b1)s0s','(0b1)0ss','(0b1)ss0','(a00)','(a00)00s','(a01/2)','(a01/2)00s', 2074 '(00g)','(00g)s00','(1/20g)','(1/20g)s00',], 2066 2075 #36 2067 'C m c 21':[ ],2068 'A 21 m a':[ ],2069 'B m 21 b':[ ],2070 'B b 21 m':[ ],2071 'C c m 21':[ ],2072 'A 21 a m':[ ],2076 'C m c 21':['(00g)','(00g)s0s','(10g)','(10g)s0s','(a00)','(a00)0s0','(0b0)','(0b0)s00',], 2077 'A 21 m a':['(a00)','(a00)ss0','(a10)','(a10)ss0','(0b0)','(0b0)00s','(00g)','(00g)0s0',], 2078 'B m 21 b':['(0b0)','(0b0)ss0','(1b0)','(1b0)ss0','(a00)','(a00)00s','(00g)','(00g)s00',], 2079 'B b 21 m':['(0b0)','(0b0)0ss','(0b1)','(0b1)ss0','(a00)','(a00)00s','(00g)','(00g)s00',], 2080 'C c m 21':['(00g)','(00g)0ss','(01g)','(01g)0ss','(a00)','(a00)0s0','(0b0)','(0b0)s00',], 2081 'A 21 a m':['(a00)','(a00)s0s','(a01)','(a01)s0s','(0b0)','(0b0)00s','(00g)','(00g)0s0',], 2073 2082 #37 2074 'C c c 2':[], 2075 'A 2 a a':[], 2076 'B b 2 b':[], 2083 'C c c 2':['(00g)','(00g)s0s','(00g)0ss','(10g)','(10g)s0s','(10g)0ss','(01g)','(01g)s0s','(01g)0ss', 2084 '(a00)','(a00)0s0','(0b0)','(0b0)s00',], 2085 'A 2 a a':['(a00)','(a00)ss0','(a00)s0s','(a10)','(a10)ss0','(a10)ss0','(a01)','(a01)ss0','(a01)ss0', 2086 '(0b0)','(0b0)00s','(00g)','(00g)0s0',], 2087 'B b 2 b':['(0b0)','(0b0)0ss','(0b0)ss0','(0b1)','(0b1)0ss','(0b1)ss0','(1b0)','(1b0)0ss','(1b0)ss0', 2088 '(a00)','(a00)00s','(00g)','(00g)s00',], 2077 2089 #38 2078 2090 'A m m 2':[], -
trunk/GSASIIstrMath.py
r1604 r1606 1536 1536 refLists = Histogram['Reflection Lists'] 1537 1537 for phase in refLists: 1538 if phase not in Phases: #skips deleted or renamed phases silently! 1539 continue 1538 1540 Phase = Phases[phase] 1539 1541 im = 0 … … 1581 1583 sumdF += np.abs(Fo-Fc) 1582 1584 sumdFsq += (refl[8+im]-refl[9+im])**2 1583 Histogram['Residuals'][phfx+'Rf'] = min(100.,(sumdF/sumFo)*100.) 1584 Histogram['Residuals'][phfx+'Rf^2'] = min(100.,np.sqrt(sumdFsq/sumFosq)*100.) 1585 if sumFo: 1586 Histogram['Residuals'][phfx+'Rf'] = min(100.,(sumdF/sumFo)*100.) 1587 Histogram['Residuals'][phfx+'Rf^2'] = min(100.,np.sqrt(sumdFsq/sumFosq)*100.) 1588 else: 1589 Histogram['Residuals'][phfx+'Rf'] = 100. 1590 Histogram['Residuals'][phfx+'Rf^2'] = 100. 1585 1591 Histogram['Residuals'][phfx+'Nref'] = len(refDict['RefList']) 1586 1592 Histogram['Residuals']['hId'] = hId … … 1640 1646 for phase in Histogram['Reflection Lists']: 1641 1647 refDict = Histogram['Reflection Lists'][phase] 1648 if phase not in Phases: #skips deleted or renamed phases silently! 1649 continue 1642 1650 Phase = Phases[phase] 1643 1651 pId = Phase['pId'] … … 1816 1824 for phase in Histogram['Reflection Lists']: 1817 1825 refDict = Histogram['Reflection Lists'][phase] 1826 if phase not in Phases: #skips deleted or renamed phases silently! 1827 continue 1818 1828 Phase = Phases[phase] 1819 1829 SGData = Phase['General']['SGData'] -
trunk/imports/G2phase.py
r1601 r1606 404 404 elif 'spgroup' in S: 405 405 if 'X' in S: 406 raise self.ImportException("Supersymmetry too high; GSAS-II limited to (3+1) supersymmetry")406 raise self.ImportException("Supersymmetry "+S+" too high; GSAS-II limited to (3+1) supersymmetry") 407 407 SpGrp = S.split()[1] 408 408 SuperSg = ''
Note: See TracChangeset
for help on using the changeset viewer.