Changeset 1321 for trunk/GSASIIIO.py


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

File:
1 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)                   
Note: See TracChangeset for help on using the changeset viewer.