Changeset 2750 for trunk/GSASIIphsGUI.py
- Timestamp:
- Mar 8, 2017 9:23:16 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r2745 r2750 835 835 pawleySizer.Add(wx.StaticText(General,label=' Pawley controls: '),0,WACV) 836 836 pawlRef = wx.CheckBox(General,-1,label=' Do Pawley refinement?') 837 #ToDo: change parameter to ComboBox of blank, Pawley, LeBail838 837 pawlRef.SetValue(generalData['doPawley']) 839 838 pawlRef.Bind(wx.EVT_CHECKBOX,OnPawleyRef) … … 5557 5556 refDict,reflData = G2frame.PatternTree.GetItemPyData(Id) 5558 5557 UseList[histoName] = {'Histogram':histoName,'Show':False,'Scale':[1.0,True], 5559 'Babinet':{'BabA':[0.0,False],'BabU':[0.0,False]},'LeBail':False, 5558 'Babinet':{'BabA':[0.0,False],'BabU':[0.0,False]},'LeBail':False,'newLeBail':True, 5560 5559 'Extinction':['Lorentzian','None', 5561 5560 {'Tbar':0.1,'Cos2TM':0.955,'Eg':[1.e-7,False],'Es':[1.e-7,False],'Ep':[1.e-7,False]},], … … 5614 5613 copyNames = ['Scale','Extinction','Babinet','Flack','Twins'] 5615 5614 else: #PWDR 5616 copyNames = ['Scale','Pref.Ori.','Size','Mustrain','HStrain','Extinction','Babinet','LeBail' ]5615 copyNames = ['Scale','Pref.Ori.','Size','Mustrain','HStrain','Extinction','Babinet','LeBail','newLeBail',] 5617 5616 copyDict = {} 5618 5617 for name in copyNames: … … 5681 5680 UseList[item]['Twins'][0][1][1] = copyDict['Twins'] 5682 5681 else: 5683 UseList[item][name][1] = copy.deepcopy(copyDict[name]) 5682 try: 5683 UseList[item][name][1] = copy.deepcopy(copyDict[name]) 5684 except KeyError: 5685 continue 5684 5686 elif name in ['Size','Mustrain']: 5685 5687 UseList[item][name][0] = copy.deepcopy(copyDict[name][0]) … … 5758 5760 for histoName in newList: 5759 5761 Id = G2gd.GetPatternTreeItemId(G2frame,G2frame.root,histoName) 5760 UseList[histoName] = {'Histogram':histoName,'Show':False,'LeBail':False, 5762 UseList[histoName] = {'Histogram':histoName,'Show':False,'LeBail':False,'newLeBail':True, 5761 5763 'Scale':[1.0,False],'Pref.Ori.':['MD',1.0,False,[0,0,1],0,{},['',],0.1], 5762 5764 'Size':['isotropic',[1.,1.,1.],[False,False,False],[0,0,1], … … 5993 5995 Obj = event.GetEventObject() 5994 5996 RBId = Indx[Obj.GetId()] 5995 RBData['Residue'][RBId]['useCount'] -= 15996 5997 RBObjs = data['RBModels']['Residue'] 5997 5998 for rbObj in RBObjs: 5998 5999 if RBId == rbObj['RBId']: 5999 data['RBModels']['Residue'].remove(rbObj) 6000 RBData['Residue'][RBId]['useCount'] -= 1 6001 data['RBModels']['Residue'].remove(rbObj) 6000 6002 G2plt.PlotStructure(G2frame,data) 6001 6003 wx.CallAfter(FillRigidBodyGrid,True)
Note: See TracChangeset
for help on using the changeset viewer.