Changeset 3594 for trunk/GSASIIlattice.py
- Timestamp:
- Sep 12, 2018 3:09:51 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIlattice.py
r3591 r3594 334 334 newPhase['Draw Atoms'] = [] 335 335 for atom in newAtoms: 336 atom[cx:cx+3] = TransformXYZ(atom[cx:cx+3] -Uvec,invTrans.T,Vvec)%1.336 atom[cx:cx+3] = TransformXYZ(atom[cx:cx+3]+Uvec,invTrans.T,Vvec)%1. 337 337 if atom[cia] == 'A': 338 338 atom[cia+2:cia+8] = TransformU6(atom[cia+2:cia+8],Trans) … … 378 378 lattSym = G2spc.getlattSym(Trans) 379 379 SpGrp = SGData['SpGrp'] 380 NUvec = np.inner(Uvec,Mats[lattSym]) #ok381 380 NTrans = np.inner(Mats[lattSym],Trans.T) #ok 382 381 spn[1:4] = np.inner(np.abs(Mats[lattSym]),spn[1:4]) #ok 383 SGsym = G2spc.getlattSym( Mats[lattSym])382 SGsym = G2spc.getlattSym(nl.inv(Mats[lattSym]).T) 384 383 385 384 if lattSym != 'abc': 386 NSG = G2spc.altSettingOrtho[SpGrp] .get(SGsym,SpGrp).replace("'",'').split(' ')385 NSG = G2spc.altSettingOrtho[SpGrp][SGsym].replace("'",'').split(' ') 387 386 Bns = '' 388 387 if bns: … … 394 393 NSG[ifld] += "'" 395 394 Nresult = [''.join(NSG)+' ',Bns] 396 return Nresult, NUvec,NTrans395 return Nresult,Uvec,NTrans 397 396 else: 398 397 Nresult = [SpGrp,'']
Note: See TracChangeset
for help on using the changeset viewer.