Changeset 2519 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Nov 9, 2016 2:48:37 PM (5 years ago)
Author:
vondreele
Message:

bug fix in PDF calculations
add option to suppress G(0) ringing in PDF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r2514 r2519  
    46474647    if 'BackRatio' not in data:
    46484648        data['BackRatio'] = 0.
     4649    if 'noRing' not in data:
     4650        data['noRing'] = False
    46494651   
    46504652    def FillFileSizer(fileSizer,key):
     
    49064908        SQmin.SetValue('%.1f'%(data['QScaleLim'][0]))
    49074909        auxPlot = ComputePDF(data)
    4908         G2plt.PlotISFG(G2frame,newPlot=True)       
     4910        G2plt.PlotISFG(G2frame,newPlot=True)
     4911       
     4912    def OnNoRing(event):
     4913        data['noRing'] = not data['noRing']
     4914        auxPlot = ComputePDF(data)
     4915        G2plt.PlotISFG(G2frame,newPlot=True)
     4916               
    49094917
    49104918    def GetFileList(fileType):
     
    51675175    sqBox.Add(lorch,0,WACV)
    51685176    sqBox.Add(wx.StaticText(G2frame.dataDisplay,label=' Scaling q-range: '),0,WACV)
    5169     SQmin = wx.TextCtrl(G2frame.dataDisplay,value='%.1f'%(data['QScaleLim'][0]))
     5177    SQmin = wx.TextCtrl(G2frame.dataDisplay,value='%.1f'%(data['QScaleLim'][0]),size=wx.Size(50,20))
    51705178    SQmin.Bind(wx.EVT_TEXT_ENTER,OnSQmin)       
    51715179    SQmin.Bind(wx.EVT_KILL_FOCUS,OnSQmin)   
    51725180    sqBox.Add(SQmin,0)
    51735181    sqBox.Add(wx.StaticText(G2frame.dataDisplay,label=' to '),0,WACV)
    5174     SQmax = wx.TextCtrl(G2frame.dataDisplay,value='%.1f'%(data['QScaleLim'][1]))
     5182    SQmax = wx.TextCtrl(G2frame.dataDisplay,value='%.1f'%(data['QScaleLim'][1]),size=wx.Size(50,20))
    51755183    SQmax.Bind(wx.EVT_TEXT_ENTER,OnSQmax)       
    51765184    SQmax.Bind(wx.EVT_KILL_FOCUS,OnSQmax)
     
    51795187    sqBox.Add(resetQ,0)
    51805188    resetQ.Bind(wx.EVT_CHECKBOX, OnResetQ)
    5181    
     5189    noRing = wx.CheckBox(parent=G2frame.dataDisplay,label='Suppress G(0) ringing?')
     5190    noRing.SetValue(data['noRing'])
     5191    noRing.Bind(wx.EVT_CHECKBOX, OnNoRing)
     5192    sqBox.Add(noRing,0)
    51825193    mainSizer.Add(sqBox,0)
     5194    #Rmax
    51835195
    51845196    mainSizer.Layout()   
Note: See TracChangeset for help on using the changeset viewer.