Changeset 2486 for trunk/GSASIIlattice.py
- Timestamp:
- Oct 12, 2016 1:06:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIlattice.py ΒΆ
r2484 r2486 282 282 if cm: 283 283 mag = np.sqrt(np.sum(np.array(atom[cm:cm+3])**2)) 284 mom = np.inner(np.array(atom[cm:cm+3]),oBmat) 285 mom = np.inner(mom,invTrans.T) 286 mom = np.inner(mom,nAmat) 287 mom /= np.sqrt(np.sum(mom**2)) 288 atom[cm:cm+3] = mom*mag 284 if mag: 285 mom = np.inner(np.array(atom[cm:cm+3]),oBmat) 286 mom = np.inner(mom,invTrans.T) 287 mom = np.inner(mom,nAmat) 288 mom /= np.sqrt(np.sum(mom**2)) 289 atom[cm:cm+3] = mom*mag 289 290 newPhase['Atoms'] = newAtoms 290 291 newPhase['Atoms'] = GetUnique(newPhase)
Note: See TracChangeset
for help on using the changeset viewer.