Changeset 5484 for trunk/GSASIIstrMain.py
- Timestamp:
- Jan 30, 2023 3:05:43 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIstrMain.py
r5310 r5484 525 525 return False 526 526 527 def DoLeBail(GPXfile,dlg=None,cycles=10,refPlotUpdate=None ):527 def DoLeBail(GPXfile,dlg=None,cycles=10,refPlotUpdate=None,seqList=None): 528 528 '''Fit LeBail intensities without changes to any other refined parameters. 529 529 This is a stripped-down version of :func:`Refine` that does not perform 530 530 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. 531 540 ''' 532 541 import GSASIImpsubs as G2mp … … 542 551 constrDict,fixedList = G2stIO.ReadConstraints(GPXfile) 543 552 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 545 558 if not Phases: 546 559 G2fil.G2Print (' *** ERROR - you have no phases to refine! ***')
Note: See TracChangeset
for help on using the changeset viewer.