Ignore:
Timestamp:
Jan 30, 2023 3:05:43 PM (8 months ago)
Author:
toby
Message:

LeBail? prep for sequential fit: only process histograms in sequential fit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrMain.py

    r5310 r5484  
    525525    return False
    526526       
    527 def DoLeBail(GPXfile,dlg=None,cycles=10,refPlotUpdate=None):
     527def DoLeBail(GPXfile,dlg=None,cycles=10,refPlotUpdate=None,seqList=None):
    528528    '''Fit LeBail intensities without changes to any other refined parameters.
    529529    This is a stripped-down version of :func:`Refine` that does not perform
    530530    any refinement cycles
     531
     532    :param str GPXfile: G2 .gpx file name
     533    :param wx.ProgressDialog dlg: optional progress window to update.
     534      Default is None, which means no calls are made to this.
     535    :param int cycles: Number of LeBail cycles to perform
     536    :param function refPlotUpdate: Optional routine used to plot results.
     537      Default is None, which means no calls are made to this.
     538    :param list seqList: List of histograms to be processed. Default
     539      is None which means that all used histograms in .gpx file are processed.
    531540    '''
    532541    import GSASIImpsubs as G2mp
     
    542551    constrDict,fixedList = G2stIO.ReadConstraints(GPXfile)
    543552    restraintDict = {}
    544     Histograms,Phases = G2stIO.GetUsedHistogramsAndPhases(GPXfile)
     553    Histograms_All,Phases = G2stIO.GetUsedHistogramsAndPhases(GPXfile)
     554    if seqList:
     555        Histograms = {i:Histograms_All[i] for i in seqList}
     556    else:
     557        Histograms = Histograms_All
    545558    if not Phases:
    546559        G2fil.G2Print (' *** ERROR - you have no phases to refine! ***')
Note: See TracChangeset for help on using the changeset viewer.