Ignore:
Timestamp:
Aug 2, 2019 1:33:41 PM (2 years ago)
Author:
vondreele
Message:

fix axes amnesia for PDF plots
add plotting of P(R) pair distribution for small angle data
force element selection if none for 1st pdf calc
Size & pair dist plots now hollow bars
implement Moore method for making pair distribution P(R) from protein small angle data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIrestrGUI.py

    r4019 r4076  
    18821882    def UpdateGeneralRestr(generalRestData):
    18831883        '''Display any generalized restraint expressions'''
     1884       
    18841885        def OnEditGenRestraint(event):
    18851886            '''Edit a restraint expression'''
     
    18871888            parmDict = SetupParmDict(G2frame)
    18881889            dlg = G2exG.ExpressionDialog(G2frame,parmDict,
    1889                             exprObj=generalRestData['General'][n][0],
    1890                             header="Edit a restraint expression",
    1891                             fit=False,wildCard=G2frame.testSeqRefineMode())
     1890                exprObj=generalRestData['General'][n][0],
     1891                header="Edit a restraint expression",
     1892                fit=False,wildCard=G2frame.testSeqRefineMode())
    18921893            restobj = dlg.Show(True)
    18931894            if restobj:
    18941895                generalRestData['General'][n][0] = restobj
    18951896                wx.CallAfter(UpdateGeneralRestr,restrData['General'])
    1896         def OnDelGenRestraint(event):
     1897               
     1898        def OnDelGenRestraint(event):              #does this work??
    18971899            '''Delete a restraint expression'''
    18981900            n = event.GetEventObject().index
     
    19081910        hSizer = wx.BoxSizer(wx.HORIZONTAL)
    19091911        hSizer.Add(wx.StaticText(GeneralRestr,wx.ID_ANY,'Weight factor: '))
    1910         hSizer.Add(
    1911                     G2G.ValidatedTxtCtrl(GeneralRestr,generalRestData,
    1912                                 'wtFactor',nDig=(10,1),typeHint=float)
    1913                     )
     1912        hSizer.Add(G2G.ValidatedTxtCtrl(GeneralRestr,generalRestData,
     1913            'wtFactor',nDig=(10,1),typeHint=float))
    19141914        btn = G2G.G2CheckBox(GeneralRestr,'Use?',generalRestData,'Use')
    19151915        hSizer.Add(btn)
Note: See TracChangeset for help on using the changeset viewer.