Changeset 5004


Ignore:
Timestamp:
Jul 28, 2021 4:18:54 PM (4 months ago)
Author:
toby
Message:

better msg on Hessian refine w/0 vars; clean up docs

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r4998 r5004  
    789789    (for peaks above 90 deg, these are reversed.)
    790790   
    791     param pos: peak position; 2-theta in degrees
    792     param sig: Gaussian peak variance in centideg^2
    793     param gam: Lorentzian peak width in centidegrees
    794     param shl: axial divergence parameter (S+H)/
    795    
    796     returns: widths; [Gaussian sigma, Lornetzian gamma] in degrees
    797     returns: low angle, high angle ends of peak; 20FWHM & 50 FWHM from position
    798         reverset for 2-theta > 90 deg.
     791    :param pos: peak position; 2-theta in degrees
     792    :param sig: Gaussian peak variance in centideg^2
     793    :param gam: Lorentzian peak width in centidegrees
     794    :param shl: axial divergence parameter (S+H)/L
     795   
     796    :returns: widths; [Gaussian sigma, Lorentzian gamma] in degrees, and
     797        low angle, high angle ends of peak; 20 FWHM & 50 FWHM from position
     798        reversed for 2-theta > 90 deg.
    799799    '''
    800800    widths = [np.sqrt(sig)/100.,gam/100.]
  • trunk/GSASIIstrMain.py

    r4894 r5004  
    252252            break
    253253        IfOK = True
     254        if not len(varyList):
     255            covMatrix = []
     256            break
    254257        try:
    255258            covMatrix = result[1]*Rvals['GOF']**2
     
    265268            # if we get here, no result[1] (covar matrix) was returned or other calc error: refinement failed
    266269            IfOK = False
    267             if not len(varyList):
    268                 covMatrix = []
    269                 break
    270270            if 'Hessian' in Controls['deriv type']:
    271271                SVD0 = result[2].get('SVD0')
Note: See TracChangeset for help on using the changeset viewer.