Changeset 981 for trunk/GSASIIstrIO.py


Ignore:
Timestamp:
Jul 7, 2013 9:58:08 AM (8 years ago)
Author:
toby
Message:

introduce regress option; fix esd printing; more docs; new Mac app with drag & drop for open; control reset of ref list on load

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrIO.py

    r960 r981  
    15141514################################################################################       
    15151515                   
    1516 def GetHistogramPhaseData(Phases,Histograms,Print=True,pFile=None):
    1517     'needs a doc string'
     1516def GetHistogramPhaseData(Phases,Histograms,Print=True,pFile=None,resetRefList=True):
     1517    '''Loads the HAP histogram/phase information into dicts
     1518
     1519    :param dict Phases: phase information
     1520    :param dict Histograms: Histogram information
     1521    :param bool Print: prints information as it is read
     1522    :param file pFile: file object to print to (the default, None causes printing to the console)
     1523    :param bool resetRefList: Should the contents of the Reflection List be initialized
     1524      on loading. The default, True, initializes the Reflection List as it is loaded.
     1525
     1526    :returns: (hapVary,hapDict,controlDict)
     1527      * hapVary: list of refined variables
     1528      * hapDict: dict with refined variables and their values
     1529      * controlDict: dict with computation controls (?)
     1530    '''
    15181531   
    15191532    def PrintSize(hapData):
     
    17221735                    else:
    17231736                        raise ValueError
    1724                 Histogram['Reflection Lists'][phase] = refList
     1737                if resetRefList: Histogram['Reflection Lists'][phase] = refList
    17251738            elif 'HKLF' in histogram:
    17261739                inst = Histogram['Instrument Parameters'][0]
Note: See TracChangeset for help on using the changeset viewer.