Changeset 4491 for trunk/GSASIIdataGUI.py
- Timestamp:
- Jun 17, 2020 5:46:20 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r4466 r4491 6116 6116 G2G.Define_wxId('wxID_DRAWADDMOLECULE') 6117 6117 self.DrawAtomEdit.Append(G2G.wxID_DRAWADDMOLECULE,'Complete molecule','Cyclicly add atoms bonded to selected atoms') 6118 G2G.Define_wxId('wxID_DRAWVOIDMAP') 6119 self.DrawAtomEdit.Append(G2G.wxID_DRAWVOIDMAP,'Create void map','Create a map of locations outside of any VDW radius') 6118 6120 self.DrawAtomEdit.Append(G2G.wxID_DRAWDELETE,'Delete atoms','Delete atoms from drawing set') 6119 6121 … … 6412 6414 LSSizer.Add(derivSel,0,WACV) 6413 6415 LSSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Min delta-M/M: '),0,WACV) 6414 LSSizer.Add(G2G.ValidatedTxtCtrl(G2frame.dataWindow,data,'min dM/M',nDig=(10,2,'g'), min=1.e-9,max=1.),0,WACV)6416 LSSizer.Add(G2G.ValidatedTxtCtrl(G2frame.dataWindow,data,'min dM/M',nDig=(10,2,'g'),xmin=1.e-9,xmax=1.),0,WACV) 6415 6417 if 'Hessian' in data['deriv type']: 6416 6418 LSSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Max cycles: '),0,WACV) … … 6428 6430 LSSizer.Add(marqLam,0,WACV) 6429 6431 LSSizer.Add(wx.StaticText(G2frame.dataWindow,label=' SVD zero tolerance:'),0,WACV) 6430 LSSizer.Add(G2G.ValidatedTxtCtrl(G2frame.dataWindow,data,'SVDtol',nDig=(10,1,'g'), min=1.e-9,max=.01),0,WACV)6432 LSSizer.Add(G2G.ValidatedTxtCtrl(G2frame.dataWindow,data,'SVDtol',nDig=(10,1,'g'),xmin=1.e-9,xmax=.01),0,WACV) 6431 6433 else: #TODO what for SVD refine? 6432 6434 LSSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Initial shift factor: '),0,WACV) 6433 Factr = G2G.ValidatedTxtCtrl(G2frame.dataWindow,data,'shift factor',nDig=(10,5), min=1.e-5,max=100.)6435 Factr = G2G.ValidatedTxtCtrl(G2frame.dataWindow,data,'shift factor',nDig=(10,5),xmin=1.e-5,xmax=100.) 6434 6436 LSSizer.Add(Factr,0,WACV) 6435 6437 if G2frame.Sngl: … … 6447 6449 LSSizer.Add(wx.StaticText(G2frame.dataWindow,-1,label=usrRej[item][0]),0,WACV) 6448 6450 usrrej = G2G.ValidatedTxtCtrl(G2frame.dataWindow,userReject,item,nDig=(10,2), 6449 min=usrRej[item][1][0],max=usrRej[item][1][1])6451 xmin=usrRej[item][1][0],xmax=usrRej[item][1][1]) 6450 6452 LSSizer.Add(usrrej,0,WACV) 6451 6453 return LSSizer … … 8226 8228 wtSizer = wx.BoxSizer(wx.HORIZONTAL) 8227 8229 wtSizer.Add(wx.StaticText(G2frame.dataWindow,-1,' Weight factor: '),0,WACV) 8228 wtSizer.Add(G2G.ValidatedTxtCtrl(G2frame.dataWindow,data[0],'wtFactor',nDig=(10,3), min=1.e-9),0,WACV)8230 wtSizer.Add(G2G.ValidatedTxtCtrl(G2frame.dataWindow,data[0],'wtFactor',nDig=(10,3),xmin=1.e-9),0,WACV) 8229 8231 # if kind == 'PWDR': #possible future compression feature; NB above patch as well 8230 8232 # wtSizer.Add(wx.StaticText(G2frame.dataWindow,-1,' Compression factor: '),0,WACV) … … 8311 8313 magSizer.Add(wx.StaticText(panel,-1,'(start)'),1,wx.ALIGN_CENTER,1) 8312 8314 edit = G2G.ValidatedTxtCtrl(panel,data[0]['Magnification'][0],1, 8313 nDig=(7,2), min=0.01,max=1000.,OnLeave=OnEditMag,size=(65,-1))8315 nDig=(7,2),xmin=0.01,xmax=1000.,OnLeave=OnEditMag,size=(65,-1)) 8314 8316 magSizer.Add(edit,1,wx.ALIGN_CENTER,5) 8315 8317 magSizer.Add((1,1)) 8316 8318 for i in range(1,lenmag): 8317 8319 edit = G2G.ValidatedTxtCtrl(panel,data[0]['Magnification'][i],0,nDig=(10,3), 8318 min=data[1][0][0],max=data[1][0][-1],OnLeave=OnEditMag)8320 xmin=data[1][0][0],xmax=data[1][0][-1],OnLeave=OnEditMag) 8319 8321 magSizer.Add(edit) 8320 8322 edit = G2G.ValidatedTxtCtrl(panel,data[0]['Magnification'][i],1, 8321 nDig=(7,2), min=0.01,max=1000.,OnLeave=OnEditMag,size=(65,-1))8323 nDig=(7,2),xmin=0.01,xmax=1000.,OnLeave=OnEditMag,size=(65,-1)) 8322 8324 magSizer.Add(edit,1,wx.ALIGN_CENTER,5) 8323 8325 delmag = wx.Button(panel,wx.ID_ANY,label='Del',size=(40,-1))
Note: See TracChangeset
for help on using the changeset viewer.