Changeset 4875 for trunk


Ignore:
Timestamp:
Apr 6, 2021 8:16:25 AM (6 months ago)
Author:
vondreele
Message:

Add Nvar to Notebook entry for LS refinement result

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4869 r4875  
    52055205        if OK:
    52065206            Rw = Rvals['Rwp']
    5207             rtext = 'LS Refinement: Rw = %.3f%%, GOF = %.2f, Nobs = %d'%(Rvals['Rwp'],Rvals['GOF'],Rvals['Nobs'])
     5207            rtext = 'LS Refinement: Rw = %.3f%%, GOF = %.2f, Nobs = %d, Nvar = %d'%(Rvals['Rwp'],Rvals['GOF'],Rvals['Nobs'],Rvals['Nvars'])
    52085208            lamMax = Rvals.get('lamMax',0.001)
    52095209            lst = os.path.splitext(os.path.abspath(self.GSASprojectfile))[0]
  • trunk/GSASIIstrMain.py

    r4860 r4875  
    225225        G2mv.Dict2Map(parmDict,varyList)
    226226        Rvals['Nobs'] = Histograms['Nobs']
     227        Rvals['Nvars'] = len(varyList)
    227228        Rvals['Rwp'] = np.sqrt(Rvals['chisq']/Histograms['sumwYo'])*100.      #to %
    228229        Rvals['GOF'] = np.sqrt(Rvals['chisq']/(Histograms['Nobs']-len(varyList)))
Note: See TracChangeset for help on using the changeset viewer.