Changeset 1321


Ignore:
Timestamp:
May 4, 2014 3:36:54 PM (8 years ago)
Author:
vondreele
Message:

remove 1/2 pixel offset - made no sense
fix weights for zero image profile intensities = 1e-6

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r1300 r1321  
    986986            parms = ['LXC',data['wavelength'],0.0,Azms[i]]
    987987        Y = G2frame.Integrate[0][i]
    988         W = 1./Y                    #probably not true
     988        W = np.where(Y>0.,1./Y,1.e-6)                    #probably not true
    989989        Id = G2frame.PatternTree.AppendItem(parent=G2frame.root,text=name)
    990990        G2frame.PatternTree.SetItemPyData(G2frame.PatternTree.AppendItem(Id,text='Comments'),Comments)                   
  • trunk/GSASIIimage.py

    r1305 r1321  
    460460            nI = iFin-iBeg
    461461            nJ = jFin-jBeg
    462             tax,tay = np.mgrid[iBeg+0.5:iFin+.5,jBeg+.5:jFin+.5]         #bin centers not corners
     462            tax,tay = np.mgrid[iBeg:iFin,jBeg:jFin]
     463#            tax,tay = np.mgrid[iBeg+0.5:iFin+.5,jBeg+.5:jFin+.5]         #bin centers not corners
    463464            tax = np.asfarray(tax*scalex,dtype=np.float32)
    464465            tay = np.asfarray(tay*scaley,dtype=np.float32)
Note: See TracChangeset for help on using the changeset viewer.