Ignore:
Timestamp:
Apr 8, 2015 11:42:52 AM (8 years ago)
Author:
vondreele
Message:

fix display of fixed wavelength selection
show no. user rejected refl. in lst file after least squares
improve color display for Refl. Lists
skip user rejected reflections in single crystal cif output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrMath.py

    r1781 r1782  
    26182618    SumwYo = 0
    26192619    Nobs = 0
     2620    Nrej = 0
    26202621    ApplyRBModels(parmDict,Phases,rigidbodyDict)
    26212622    histoList = Histograms.keys()
     
    26972698            sumdF2 = 0
    26982699            nobs = 0
     2700            nrej = 0
    26992701            if calcControls['F**2']:
    27002702                for i,ref in enumerate(refDict['RefList']):
     
    27132715                            df[i] = -w*(ref[5+im]-ref[7+im])
    27142716                            sumwYo += (w*ref[5+im])**2
     2717                        else:
     2718                            nrej += 1
    27152719            else:
    27162720                for i,ref in enumerate(refDict['RefList']):
     
    27302734                            df[i] = -w*(Fo-Fc)
    27312735                            sumwYo += (w*Fo)**2
     2736                        else:
     2737                            nrej += 1
    27322738            Histogram['Residuals']['Nobs'] = nobs
    27332739            Histogram['Residuals']['sumwYo'] = sumwYo
     
    27372743            Histogram['Residuals'][phfx+'Rf^2'] = 100.*sumdF2/sumFo2
    27382744            Histogram['Residuals'][phfx+'Nref'] = nobs
     2745            Histogram['Residuals'][phfx+'Nrej'] = nrej
    27392746            Nobs += nobs
     2747            Nrej += nrej
    27402748            if dlg:
    27412749                dlg.Update(Histogram['Residuals']['wR'],newmsg='For histogram %d Rw=%8.3f%s'%(hId,Histogram['Residuals']['wR'],'%'))[0]
     
    27442752    Histograms['sumwYo'] = SumwYo
    27452753    Histograms['Nobs'] = Nobs
     2754    Histograms['Nrej'] = Nrej
    27462755    Rw = min(100.,np.sqrt(np.sum(M**2)/SumwYo)*100.)
    27472756    if dlg:
Note: See TracChangeset for help on using the changeset viewer.