Changeset 4175
- Timestamp:
- Oct 10, 2019 9:57:28 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIlattice.py
r3888 r4175 344 344 newPhase['Draw Atoms'] = [] 345 345 for atom in newAtoms: 346 atom[cx:cx+3] = TransformXYZ(atom[cx:cx+3]+Uvec,invTrans.T,Vvec)%1. 346 xyz = TransformXYZ(atom[cx:cx+3]+Uvec,invTrans.T,Vvec)%1. 347 atom[cx:cx+3] = np.around(xyz,6)%1. 347 348 if atom[cia] == 'A': 348 349 atom[cia+2:cia+8] = TransformU6(atom[cia+2:cia+8],Trans) -
trunk/GSASIIphsGUI.py
r4173 r4175 327 327 self.newCell[2:5] = [A[2,2],90.,90.] 328 328 a,b = G2lat.cell2AB(self.newCell[:6]) 329 self.Trans = np.inner( a.T,B).T #correct!329 self.Trans = np.inner(B,a).T #correct! 330 330 self.ifConstr = False 331 331 self.newSpGrp = 'P 1' -
trunk/GSASIIspc.py
r4174 r4175 1309 1309 Ncv = len(SGData['SGCen']) 1310 1310 sgOp = [M for M,T in SGData['SGOps']] 1311 detM = [nl.det(M) for M in sgOp] 1311 1312 oprName = [GetOprPtrName(str(irtx)) for irtx in PackRot(SGData['SGOps'])] 1312 1313 if SGData['SGInv'] and not SGData['SGFixed']: 1313 1314 Nsym *= 2 1315 detM += [nl.det(-M) for M in sgOp] 1314 1316 sgOp += [-M for M,T in SGData['SGOps']] 1315 1317 oprName += [GetOprPtrName(str(-irtx)) for irtx in PackRot(SGData['SGOps'])] … … 1317 1319 sgOps = [] 1318 1320 OprNames = [] 1321 detMs = [] 1319 1322 for incv in range(Ncv): 1320 1323 Nsyms += Nsym 1321 1324 sgOps += sgOp 1325 detMs += detM 1322 1326 OprNames += oprName 1323 1327 if SGData['SGFixed']: … … 1338 1342 except IndexError: 1339 1343 FlpSpn = [1,]+FlpSpn 1340 SpnFlp = np.concatenate((SpnFlp,SpnFlp[:Nsym]*FlpSpn[Nfl+incv-1])) 1341 detM = [nl.det(M) for M in sgOp] 1342 MagMom = SpnFlp*np.array(Ncv*detM) #duplicate for no. centerings 1344 SpnFlp = np.concatenate((SpnFlp,SpnFlp[:Nsym]*FlpSpn[Nfl+incv-1])) 1345 if SGData['SGGray']: 1346 SpnFlp = np.concatenate((SpnFlp,-SpnFlp)) 1347 detMs =2*detMs 1348 MagMom = SpnFlp*np.array(detMs) #duplicate for no. centerings 1343 1349 SGData['MagMom'] = MagMom 1344 1350 return OprNames,SpnFlp -
trunk/GSASIIstrMath.py
r4169 r4175 1487 1487 SGInv = SGData['SGInv'] 1488 1488 SGMT = np.array([ops[0].T for ops in SGData['SGOps']]) 1489 #Ncen = len(SGData['SGCen'])1489 Ncen = len(SGData['SGCen']) 1490 1490 Nops = len(SGMT)*(1+SGData['SGInv']) 1491 1491 SSGMT = np.array([ops[0].T for ops in SSGData['SSGOps']]) … … 1620 1620 fams += fam0[:,nxs,:,:,:] 1621 1621 fbms += fbm0[:,nxs,:,:,:] 1622 else: 1623 fams *= Ncen 1624 fbms *= Ncen 1622 1625 1623 1626 # do sum on ops, atms 1st
Note: See TracChangeset
for help on using the changeset viewer.