Changeset 4056 for trunk/GSASIIimage.py


Ignore:
Timestamp:
Jul 9, 2019 8:24:26 AM (2 years ago)
Author:
vondreele
Message:

use config value of default spot size for spot masks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimage.py

    r4035 r4056  
    12471247    return vals,sig,covMatrix
    12481248
    1249 def FitImageSpots(Image,ImMax,ind,pixSize,nxy):
     1249def FitImageSpots(Image,ImMax,ind,pixSize,nxy,spotSize=1.0):
    12501250   
    12511251    def calcMean(nxy,pixSize,img):
     
    12911291        vals = calcMean(nxy,pixSize,ImBox)
    12921292        posx,posy = [px+vals[0],py+vals[1]]
    1293         return [posx,posy,6.]
     1293        return [posx,posy,spotSize]
    12941294    else:
    12951295        result = leastsq(calc2Peak,vals,args=(nxy,pixSize,ImBox),full_output=True)
     
    12981298        if 0.5 < ratio < 2.0 and vals[2] < 2. and vals[3] < 2.:
    12991299            posx,posy = [px+vals[2],py+vals[3]]
    1300             return [posx,posy,min(6.*vals[4],6.)]
     1300            return [posx,posy,min(6.*vals[4],spotSize)]
    13011301        else:
    13021302            return None
Note: See TracChangeset for help on using the changeset viewer.