Changeset 1452
- Timestamp:
- Aug 1, 2014 2:14:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIlattice.py
r1445 r1452 1203 1203 1204 1204 def polfcal(ODFln,SamSym,psi,gam): 1205 'needs doc string' 1205 '''Perform a pole figure computation. 1206 Note that the the number of gam values must either be 1 or must 1207 match psi. Updated for numpy 1.8.0 1208 ''' 1206 1209 import pytexture as ptx 1207 1210 RSQPI = 0.5641895835478 1208 1211 SQ2 = 1.414213562373 1209 PolVal = np.ones_like( gam)1212 PolVal = np.ones_like(psi) 1210 1213 for term in ODFln: 1211 1214 if abs(ODFln[term][1]) > 1.e-3: … … 1222 1225 else: 1223 1226 Ksl = RSQPI*psrs/SQ2 1224 PolVal += ODFln[term][1]*Ksl 1227 PolVal += ODFln[term][1]*Ksl 1225 1228 return PolVal 1226 1229
Note: See TracChangeset
for help on using the changeset viewer.