Changeset 2061 for trunk/GSASIIspc.py
- Timestamp:
- Nov 19, 2015 9:15:05 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIspc.py
r2025 r2061 2170 2170 def U2Uij(U): 2171 2171 #returns the UIJ vector U11,U22,U33,U12,U13,U23 from tensor U 2172 return [U[0][0],U[1][1],U[2][2], 2.*U[0][1],2.*U[0][2],2.*U[1][2]]2172 return [U[0][0],U[1][1],U[2][2],U[0][1],U[0][2],U[1][2]] 2173 2173 2174 2174 def Uij2U(Uij): 2175 2175 #returns the thermal motion tensor U from Uij as numpy array 2176 return np.array([[Uij[0],Uij[3] /2.,Uij[4]/2.],[Uij[3]/2.,Uij[1],Uij[5]/2.],[Uij[4]/2.,Uij[5]/2.,Uij[2]]])2176 return np.array([[Uij[0],Uij[3],Uij[4]],[Uij[3],Uij[1],Uij[5]],[Uij[4],Uij[5],Uij[2]]]) 2177 2177 2178 2178 def StandardizeSpcName(spcgroup):
Note: See TracChangeset
for help on using the changeset viewer.