Changeset 447 for trunk/GSASIIimage.py


Ignore:
Timestamp:
Dec 20, 2011 11:46:45 AM (10 years ago)
Author:
vondreele
Message:

Add another variation on background - individual peaks (not finished)
fix image calibration problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimage.py

    r397 r447  
    205205        xpix += Zmax%w2-w
    206206        ypix += Zmax/w2-w
    207         return xpix,ypix,np.ravel(Z)[Zmax],np.ravel(Z)[Zmin]
     207        return xpix,ypix,np.ravel(Z)[Zmax],max(0.0001,np.ravel(Z)[Zmin])   #avoid neg/zero minimum
    208208    else:
    209209        return 0,0,0,0     
Note: See TracChangeset for help on using the changeset viewer.