Changeset 2132 for trunk/GSASIIplot.py
 Timestamp:
 Jan 22, 2016 10:10:43 AM (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASIIplot.py
r2127 r2132 2663 2663 Z = np.ones_like(X) 2664 2664 data = G2mth.setPeakparms(Parms,Parms2,X,Z) 2665 s = 1.17741*np.sqrt(data[4])*np.pi/18000.2666 g = data[6]*np.pi/ 36000.2667 G = G2pwd.getgamFW(g,s) 2665 s = np.sqrt(data[4])*np.pi/18000. #var > sig(radians) 2666 g = data[6]*np.pi/18000. #centideg > radians 2667 G = G2pwd.getgamFW(g,s)/2. #delttheta 2668 2668 Y = s/nptand(X/2.) 2669 2669 Z = g/nptand(X/2.) … … 2674 2674 2675 2675 fit = G2mth.setPeakparms(Parms,Parms2,X,Z,useFit=True) 2676 sf = 1.17741*np.sqrt(fit[4])*np.pi/18000.2677 gf = fit[6]*np.pi/ 36000.2678 Gf = G2pwd.getgamFW(gf,sf) 2676 sf = np.sqrt(fit[4])*np.pi/18000. 2677 gf = fit[6]*np.pi/18000. 2678 Gf = G2pwd.getgamFW(gf,sf)/2. 2679 2679 Yf = sf/nptand(X/2.) 2680 2680 Zf = gf/nptand(X/2.) … … 2692 2692 X.append(4.0*math.pi*sind(peak[0]/2.0)/lam) 2693 2693 try: 2694 s = 1.17741*math.sqrt(peak[4])*math.pi/18000.2694 s = math.sqrt(peak[4])*math.pi/18000. 2695 2695 except ValueError: 2696 2696 s = 0.01 2697 g = peak[6]*math.pi/ 36000.2698 G = G2pwd.getgamFW(g,s) 2697 g = peak[6]*math.pi/18000. 2698 G = G2pwd.getgamFW(g,s)/2. 2699 2699 Y.append(s/tand(peak[0]/2.)) 2700 2700 Z.append(g/tand(peak[0]/2.))
Note: See TracChangeset
for help on using the changeset viewer.