Changeset 1581 for trunk/GSASIIlattice.py
 Timestamp:
 Nov 24, 2014 9:27:52 AM (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASIIlattice.py
r1578 r1581 45 45 acosd = lambda x: 180.*np.arccos(x)/np.pi 46 46 rdsq2d = lambda x,p: round(1.0/np.sqrt(x),p) 47 rpd = np.pi/180. 47 48 48 49 def sec2HMS(sec): … … 458 459 def calc_rDsqZ(H,A,Z,tth,lam): 459 460 'needs doc string' 460 rpd = np.pi/180.461 461 rdsq = calc_rDsq(H,A)+Z*sind(tth)*2.0*rpd/lam**2 462 462 return rdsq … … 464 464 def calc_rDsqZSS(H,A,vec,Z,tth,lam): 465 465 'needs doc string' 466 rpd = np.pi/180.467 466 rdsq = calc_rDsq(H[:3]+(H[3][:,np.newaxis]*vec).T,A)+Z*sind(tth)*2.0*rpd/lam**2 468 467 return rdsq … … 970 969 """ 971 970 972 rpd = math.pi/180.973 971 if IFCoup: 974 972 GSomeg = sind(Gangls[2]+Tth)
Note: See TracChangeset
for help on using the changeset viewer.