Changeset 3105


Ignore:
Timestamp:
Sep 29, 2017 1:10:11 PM (4 years ago)
Author:
vondreele
Message:

another slight integration improvement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimage.py

    r3104 r3105  
    423423    dy = y-data['center'][1]
    424424    G = ((dx-x0)**2+dy**2+distsq)/distsq       #for geometric correction = 1/cos(2theta)^2 if tilt=0.
    425     X = np.dstack([dx.T,dy.T,np.zeros_like(dx.T)])
    426     Z = np.dot(X,MN).T[2]
     425    Z = np.dot(np.dstack([dx.T,dy.T,np.zeros_like(dx.T)]),MN).T[2]
    427426    xyZ = dx**2+dy**2-Z**2   
    428427    tth = npatand(np.sqrt(xyZ)/(dist-Z))
Note: See TracChangeset for help on using the changeset viewer.