Changeset 2732
- Timestamp:
- Mar 1, 2017 4:02:01 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIddataGUI.py
r2727 r2732 819 819 def OnLeBail(event): 820 820 Obj = event.GetEventObject() 821 if not UseList[G2frame.hist]['LeBail']: 822 UseList[G2frame.hist]['newLeBail'] = True 823 else: 824 UseList[G2frame.hist]['newLeBail'] = False 821 825 UseList[G2frame.hist]['LeBail'] = Obj.GetValue() 822 826 … … 859 863 if 'LeBail' not in UseList[G2frame.hist]: 860 864 UseList[G2frame.hist]['LeBail'] = False 865 if 'newLeBail' not in UseList[G2frame.hist]: 866 UseList[G2frame.hist]['newLeBail'] = True 861 867 if 'Babinet' not in UseList[G2frame.hist]: 862 868 UseList[G2frame.hist]['Babinet'] = {'BabA':[0.0,False],'BabU':[0.0,False]} … … 872 878 lebail.SetValue(UseList[G2frame.hist]['LeBail']) 873 879 useBox.Add(lebail,0,WACV) 880 if UseList[G2frame.hist]['LeBail']: 881 G2frame.dataFrame.SetStatusText('To reset LeBail, cycle LeBail check box.') 874 882 bottomSizer.Add(useBox,0,WACV|wx.TOP|wx.BOTTOM|wx.LEFT,5) 875 883 … … 980 988 if name in UseList: 981 989 useList.append(name) 990 if not G2frame.dataFrame.GetStatusBar(): 991 G2frame.dataFrame.CreateStatusBar() 982 992 mainSizer = wx.BoxSizer(wx.VERTICAL) 983 993 mainSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Histogram data for '+PhaseName+':'),0,WACV|wx.LEFT,5) -
trunk/GSASIIstrIO.py
r2728 r2732 2236 2236 if Phases[phase]['General']['doPawley']: 2237 2237 hapDict[pfx+'LeBail'] = False #Pawley supercedes LeBail 2238 hapDict[pfx+'newLeBail'] = True 2238 2239 Tmin = G2lat.Dsp2pos(inst,dmin) 2239 2240 if 'C' in inst['Type'][1]: … … 2243 2244 else: 2244 2245 hapDict[pfx+'LeBail'] = hapData.get('LeBail',False) 2246 hapDict[pfx+'newLeBail'] = hapData.get('newLeBail',True) 2245 2247 if Phases[phase]['General']['Type'] == 'magnetic': 2246 2248 dmin = max(dmin,Phases[phase]['General']['MagDmin']) … … 2333 2335 if hapData['Babinet']['BabA'][0]: 2334 2336 PrintBabinet(hapData['Babinet']) 2335 if resetRefList and not hapDict[pfx+'LeBail']: 2337 if resetRefList and hapDict[pfx+'newLeBail']: 2338 if hapData.get('LeBail',False): 2339 hapData['newLeBail'] = False 2336 2340 refList = [] 2337 2341 Uniq = [] -
trunk/GSASIIstrMath.py
r2728 r2732 3079 3079 GA,GB = G2lat.Gmat2AB(G) #Orthogonalization matricies 3080 3080 Vst = np.sqrt(nl.det(G)) #V* 3081 if not Phase['General'].get('doPawley') : # and not parmDict[phfx+'LeBail'] and len(refDict['FF']):3081 if not Phase['General'].get('doPawley') and not parmDict[phfx+'LeBail']: 3082 3082 if im: 3083 3083 SStructureFactor(refDict,G,hfx,pfx,SGData,SSGData,calcControls,parmDict) … … 3254 3254 G,g = G2lat.A2Gmat(A) #recip & real metric tensors 3255 3255 GA,GB = G2lat.Gmat2AB(G) #Orthogonalization matricies 3256 if not Phase['General'].get('doPawley') : # and not parmDict[phfx+'LeBail'] and len(refDict['FF']):3256 if not Phase['General'].get('doPawley') and not parmDict[phfx+'LeBail']: 3257 3257 if im: 3258 3258 dFdvDict = SStructureFactorDerv(refDict,im,G,hfx,pfx,SGData,SSGData,calcControls,parmDict) … … 3449 3449 if Ka2 and iFin2-iBeg2: 3450 3450 depDerivDict[phfx+name][iBeg2:iFin2] += parmDict[phfx+'Scale']*dFdvDict[phfx+name][iref]*dervDict2['int']/refl[9+im] 3451 if not Phase['General'].get('doPawley') and not parmDict[phfx+'LeBail'] and len(refDict['FF']):3451 if not Phase['General'].get('doPawley') and not parmDict[phfx+'LeBail']: 3452 3452 #do atom derivatives - for RB,F,X & U so far - how do I scale mixed phase constraints? 3453 3453 corr = 0. … … 3637 3637 dMdv = np.sqrt(wtFactor)*dMdvh 3638 3638 3639 GetFobsSq(Histograms,Phases,parmDict,calcControls) 3639 3640 pNames,pVals,pWt,pWsum = penaltyFxn(HistoPhases,calcControls,parmDict,varylist) 3640 3641 if np.any(pVals): … … 3713 3714 else: 3714 3715 continue #skip non-histogram entries 3716 GetFobsSq(Histograms,Phases,parmDict,calcControls) 3715 3717 pNames,pVals,pWt,pWsum = penaltyFxn(HistoPhases,calcControls,parmDict,varylist) 3716 3718 if np.any(pVals): … … 3926 3928 M = np.concatenate((M,wtFactor*df)) 3927 3929 # end of HKLF processing 3930 GetFobsSq(Histograms,Phases,parmDict,calcControls) 3928 3931 Histograms['sumwYo'] = SumwYo 3929 3932 Histograms['Nobs'] = Nobs
Note: See TracChangeset
for help on using the changeset viewer.