Changeset 1929 for trunk/GSASIImath.py
- Timestamp:
- Jul 15, 2015 3:38:04 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r1928 r1929 2475 2475 X = np.array(xyz)%1. #get into unit cell 2476 2476 I = np.array(X*mapShape,dtype='int') 2477 return rho[I[0],I[1],I[2]]2478 2477 D = X-I*mapStep #position inside map cell 2479 2478 D12 = D[0]*D[1] … … 2481 2480 D23 = D[1]*D[2] 2482 2481 D123 = np.prod(D) 2483 Rho = rollMap(rho, I) #shifts map so point is in corner2482 Rho = rollMap(rho,-I) #shifts map so point is in corner 2484 2483 R = Rho[0,0,0]*(1.-np.sum(D))+Rho[1,0,0]*D[0]+Rho[0,1,0]*D[1]+Rho[0,0,1]*D[2]+ \ 2485 2484 Rho[1,1,1]*D123+Rho[0,1,1]*(D23-D123)+Rho[1,0,1]*(D13-D123)+Rho[1,1,0]*(D12-D123)+ \
Note: See TracChangeset
for help on using the changeset viewer.