Changeset 693 for trunk/GSASIImapvars.py


Ignore:
Timestamp:
Jul 21, 2012 1:44:56 PM (9 years ago)
Author:
vondreele
Message:

LS refinement results now printed to a separate file "name.lst"; it is overwritten each time refine or sequential refine is run. Console only contains error messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImapvars.py

    r668 r693  
    661661    return independentVars
    662662
    663 def PrintIndependentVars(parmDict,varyList,sigDict,PrintAll=False):
     663def PrintIndependentVars(parmDict,varyList,sigDict,PrintAll=False,pFile=None):
    664664    '''Print the values and uncertainties on the independent variables'''
    665665    global dependentParmList,arrayList,invarrayList,indParmList,fixedDict
     
    673673    if len(printlist) == 0: return
    674674    s1 = ''
    675     print 130*'-'
    676     print "Variables generated by constraints"
     675    print >>pFile,130*'-'
     676    print >>pFile,"Variables generated by constraints"
    677677    printlist.append(3*[None])
    678678    for name,val,esd in printlist:
    679679        if len(s1) > 120 or name is None:
    680             print
    681             print s1
    682             print s2
    683             print s3
     680            print >>pFile,''
     681            print >>pFile,s1
     682            print >>pFile,s2
     683            print >>pFile,s3
    684684            s1 = ''
    685685            if name is None: break
Note: See TracChangeset for help on using the changeset viewer.