Changeset 251 for trunk/GSASIIimage.py


Ignore:
Timestamp:
Mar 1, 2011 1:16:27 PM (11 years ago)
Author:
vondreele
Message:

Add NaCl? even hkl to ImageCalibrants?.py
Fix bug in polygon mask in GSASIIimage.py
Fix copy bugs in GSASIIimgGUI.py
Make float image for float tiff file in GSASIIIO.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimage.py

    r248 r251  
    504504    tam = ma.make_mask_none((iLim[1]-iLim[0],jLim[1]-jLim[0]))
    505505    for polygon in polygons:
    506         tamp = ma.make_mask_none((nI*nJ))
    507         tam = ma.mask_or(tam.flatten(),ma.make_mask(pm.polymask(nI*nJ,
    508             tax.flatten(),tay.flatten(),len(polygon),polygon,tamp)))
     506        if polygon:
     507            tamp = ma.make_mask_none((nI*nJ))
     508            tam = ma.mask_or(tam.flatten(),ma.make_mask(pm.polymask(nI*nJ,
     509                tax.flatten(),tay.flatten(),len(polygon),polygon,tamp)))
    509510    if tam.shape: tam = np.reshape(tam,(nI,nJ))
    510511    for X,Y,diam in spots:
Note: See TracChangeset for help on using the changeset viewer.