Changeset 3888 for trunk/GSASIIlattice.py
- Timestamp:
- Apr 11, 2019 3:59:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIlattice.py
r3801 r3888 891 891 return rdsq 892 892 893 def PlaneIntercepts(Amat, Bmat,H,phase,stack):893 def PlaneIntercepts(Amat,H,phase,stack): 894 894 ''' find unit cell intercepts for a stack of hkl planes 895 895 ''' … … 906 906 for j in [0,1,2,3]: 907 907 hx = [0,0,0] 908 intcpt = ( phase/360.+step-H[h]*Ux[j,0]-H[k]*Ux[j,1])/H[l]908 intcpt = ((phase)/360.+step-H[h]*Ux[j,0]-H[k]*Ux[j,1])/H[l] 909 909 if 0. <= intcpt <= 1.: 910 910 hx[h] = Ux[j,0] … … 924 924 A[1:] = [np.dot(DX[1],dx) for dx in DX[1:]] 925 925 HX = HX[np.argsort(A)] 926 # GSASIIpath.IPyBreak()927 926 Stack.append(HX) 928 927 return Stack
Note: See TracChangeset
for help on using the changeset viewer.