Changes between Version 8 and Version 9 of LatticeComputations
- Timestamp:
- Jul 6, 2010 3:01:27 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LatticeComputations
v8 v9 19 19 Xfrac = np.array( [0.1,0.1,0.1] ) 20 20 Xortho = np.sum(A*Xfrac,axis=1) 21 }}} 22 23 24 or to process an array of coordinates: 25 {{{ 26 import numpy as np 27 import GSASIIlattice as latt 28 A,B = latt.cell2AB( (4.1,4.1,5.2,90,90,90) ) 29 Xfrac = np.array([[1,1,1],[0,0,0],[.1,.2,.3]]) 30 Xortho = np.dot(A, Xfrac.transpose() ).transpose() 21 31 }}} 22 32