Ignore:
Timestamp:
Feb 25, 2014 9:40:27 AM (9 years ago)
Author:
vondreele
Message:

more fine tuning of image recalibrate
James Hester's fix to Pawley estimate
Fix problems with Pawley penalty fxn.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrMath.py

    r1175 r1229  
    393393                                pWsum[name] += wt*((obs-calc)/esd)**2
    394394         
     395    pWsum['PWLref'] = 0.
    395396    for item in varyList:
    396397        if 'PWLref' in item and parmDict[item] < 0.:
     
    400401                pVals.append(-parmDict[item])
    401402                pWt.append(negWt[pId])
    402                 pWsum[name] += negWt[pId]*(-parmDict[item])**2
     403                pWsum['PWLref'] += negWt[pId]*(-parmDict[item])**2
    403404    pVals = np.array(pVals)
    404405    pWt = np.array(pWt)         #should this be np.sqrt?
Note: See TracChangeset for help on using the changeset viewer.