Ignore:
Timestamp:
Jun 17, 2020 5:46:20 PM (3 years ago)
Author:
toby
Message:

Add VoidMap?; change min/max in ValidatedTextCtrl? to xmin/xmax; new G2SliderWidget

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4466 r4491  
    61166116        G2G.Define_wxId('wxID_DRAWADDMOLECULE')
    61176117        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')
    61186120        self.DrawAtomEdit.Append(G2G.wxID_DRAWDELETE,'Delete atoms','Delete atoms from drawing set')
    61196121       
     
    64126414        LSSizer.Add(derivSel,0,WACV)
    64136415        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)
    64156417        if 'Hessian' in data['deriv type']:
    64166418            LSSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Max cycles: '),0,WACV)
     
    64286430                LSSizer.Add(marqLam,0,WACV)
    64296431            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)
    64316433        else:       #TODO what for SVD refine?
    64326434            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.)
    64346436            LSSizer.Add(Factr,0,WACV)
    64356437        if G2frame.Sngl:
     
    64476449                LSSizer.Add(wx.StaticText(G2frame.dataWindow,-1,label=usrRej[item][0]),0,WACV)
    64486450                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])
    64506452                LSSizer.Add(usrrej,0,WACV)
    64516453        return LSSizer
     
    82268228    wtSizer = wx.BoxSizer(wx.HORIZONTAL)
    82278229    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)
    82298231#    if kind == 'PWDR':         #possible future compression feature; NB above patch as well
    82308232#        wtSizer.Add(wx.StaticText(G2frame.dataWindow,-1,' Compression factor: '),0,WACV)
     
    83118313            magSizer.Add(wx.StaticText(panel,-1,'(start)'),1,wx.ALIGN_CENTER,1)
    83128314            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))
    83148316            magSizer.Add(edit,1,wx.ALIGN_CENTER,5)
    83158317            magSizer.Add((1,1))
    83168318            for i in range(1,lenmag):
    83178319                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)
    83198321                magSizer.Add(edit)
    83208322                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))
    83228324                magSizer.Add(edit,1,wx.ALIGN_CENTER,5)
    83238325                delmag = wx.Button(panel,wx.ID_ANY,label='Del',size=(40,-1))
Note: See TracChangeset for help on using the changeset viewer.