Changeset 5484
- Timestamp:
- Jan 30, 2023 3:05:43 PM (10 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r5483 r5484 5568 5568 refPlotUpdate = None 5569 5569 5570 seqList = self.testSeqRefineMode() 5570 5571 try: 5571 OK,Rvals = G2stMn.DoLeBail(self.GSASprojectfile,dlg,cycles=1,refPlotUpdate=refPlotUpdate )5572 OK,Rvals = G2stMn.DoLeBail(self.GSASprojectfile,dlg,cycles=1,refPlotUpdate=refPlotUpdate,seqList=seqList) 5572 5573 finally: 5573 5574 dlg.Update(101.) # forces the Auto_Hide; needed after move w/Win & wx3.0 5574 5575 dlg.Destroy() 5575 if OK: 5576 if OK and seqList: 5577 print('continuing with sequential fit') 5578 elif OK: 5576 5579 text = '' 5577 5580 rtext = 'LeBail-only fit done. ' -
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.