- Timestamp:
- Mar 7, 2021 5:46:32 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r4841 r4843 760 760 self.Refine.append(item) 761 761 self.Bind(wx.EVT_MENU, self.OnRefine, id=item.GetId()) 762 item = parent.Append(wx.ID_ANY,'&Le Bail fit\tCTRL+B','Fit LeBail intensities only')762 item = parent.Append(wx.ID_ANY,'&Le Bail fit\tCTRL+B','Fit Le Bail intensities only') 763 763 item.Enable(state) 764 764 self.Refine.append(item) … … 802 802 803 803 for item in self.Refine: 804 if 'Le Bail' in item.GetItemLabel():804 if 'Le Bail' in item.GetItemLabel(): 805 805 if seqSetting: item.Enable(False) 806 806 elif seqSetting: … … 5260 5260 item = GetGPXtreeItemId(self,self.root,'Covariance') 5261 5261 covData = self.GPXtree.GetItemPyData(item) 5262 GOF0 = covData['Rvals']['GOF'] 5262 try: 5263 rChi2initial = '{:.3f}'.format(covData['Rvals']['GOF']**2) 5264 except: 5265 rChi2initial = '?' 5263 5266 5264 5267 dlg = wx.ProgressDialog('Residual','All data Rw =',101.0, … … 5283 5286 if OK: 5284 5287 text = '' 5285 rtext = 'Le Bail+only fit done. '5288 rtext = 'Le Bail-only fit done. ' 5286 5289 Rwp = Rvals.get('Rwp','?') 5287 5290 if 'GOF' in Rvals: 5288 txt = 'Final Reduced Chi^2: {:.3f} (before ref: { :.3f})\n'.format(5289 Rvals['GOF']**2, GOF0**2)5291 txt = 'Final Reduced Chi^2: {:.3f} (before ref: {})\n'.format( 5292 Rvals['GOF']**2,rChi2initial) 5290 5293 text += txt 5291 5294 rtext += txt 5292 5295 text += '\nLoad new result?' 5293 dlg2 = wx.MessageDialog(self,text,'Le Bail fit: Rwp={:.3f}'5296 dlg2 = wx.MessageDialog(self,text,'Le Bail fit: Rwp={:.3f}' 5294 5297 .format(Rwp),wx.OK|wx.CANCEL) 5295 5298 dlg2.CenterOnParent() … … 5303 5306 dlg2.Destroy() 5304 5307 else: 5305 self.ErrorDialog('Le Bail error',Rvals['msg'])5308 self.ErrorDialog('Le Bail error',Rvals['msg']) 5306 5309 5307 5310 def reloadFromGPX(self,rtext=None): -
trunk/GSASIIddataGUI.py
r4839 r4843 842 842 if not UseList[G2frame.hist]['LeBail']: 843 843 UseList[G2frame.hist]['newLeBail'] = True 844 Obj.SetLabel('Do new Le Bail extraction?')844 Obj.SetLabel('Do new Le Bail extraction?') 845 845 UseList[G2frame.hist]['LeBail'] = Obj.GetValue() 846 846 … … 909 909 useBox.Add(useData,0,WACV) 910 910 if not generalData['doPawley'] and 'PWDR' in G2frame.hist[:4]: 911 lbLabel = 'Redo Le Bail extraction? '911 lbLabel = 'Redo Le Bail extraction? ' 912 912 if UseList[G2frame.hist]['newLeBail']: 913 lbLabel = 'Do new Le Bail extraction?'913 lbLabel = 'Do new Le Bail extraction?' 914 914 lebail = wx.CheckBox(DData,wx.ID_ANY,label=lbLabel) 915 915 lebail.Bind(wx.EVT_CHECKBOX, OnLeBail) … … 917 917 useBox.Add(lebail,0,WACV) 918 918 if UseList[G2frame.hist]['LeBail']: 919 G2frame.SetStatusText('To reset Le Bail, cycle LeBail check box.',1)919 G2frame.SetStatusText('To reset Le Bail, cycle Le Bail check box.',1) 920 920 bottomSizer.Add(useBox,0,wx.TOP|wx.BOTTOM|wx.LEFT,5) 921 921 if G2frame.testSeqRefineMode(): -
trunk/GSASIIstrMain.py
r4840 r4843 299 299 if IfOK: 300 300 if CheckLeBail(Phases): # only needed for LeBail extraction 301 G2stMth.errRefine(values,[Histograms,Phases,restraintDict,rigidbodyDict], 302 parmDict,varyList,calcControls,pawleyLookup,dlg) 303 301 G2stMth.errRefine([],[Histograms,Phases,restraintDict,rigidbodyDict], 302 parmDict,[],calcControls,pawleyLookup,dlg) 304 303 G2stMth.GetFobsSq(Histograms,Phases,parmDict,calcControls) 305 304 if chisq0 is not None: … … 562 561 parmDict.update(histDict) 563 562 G2stIO.GetFprime(calcControls,Histograms) 564 parmFrozenList = Controls['parmFrozen']['FrozenList']565 563 try: 566 564 for i in range(cycles): … … 580 578 'freshCOV':True} 581 579 582 G2stIO.SetUsedHistogramsAndPhases(GPXfile,Histograms,Phases,rigidbodyDict,covData, parmFrozenList,True)580 G2stIO.SetUsedHistogramsAndPhases(GPXfile,Histograms,Phases,rigidbodyDict,covData,[],True) 583 581 G2fil.G2Print (' ***** LeBail fit completed *****') 584 582 return True,Rvals
Note: See TracChangeset
for help on using the changeset viewer.