Changeset 4191 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Nov 13, 2019 8:18:50 AM (2 years ago)
Author:
vondreele
Message:

put in dummy phase tab & menu for fullrmc
partial implementation of pdf from TOF data; lacks absorption & wavelength dependent scattering length effects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r4177 r4191  
    69116911        geoBox = wx.BoxSizer(wx.HORIZONTAL)
    69126912        geoBox.Add(wx.StaticText(G2frame.dataWindow,label=' Sample geometry: '),0,WACV)
    6913         choice = ['Cylinder','Bragg-Brentano','Tilting flat plate in transmission','Fixed flat plate']
     6913        if 'C' in inst['Type'][0]:
     6914            choice = ['Cylinder','Bragg-Brentano','Tilting flat plate in transmission','Fixed flat plate']
     6915        else:
     6916            choice = ['Cylinder',]
    69146917        geometry = wx.ComboBox(G2frame.dataWindow,value=data['Geometry'],choices=choice,
    69156918                style=wx.CB_READONLY|wx.CB_DROPDOWN)
     
    70467049        bkBox.Add(backVal,0,WACV)   
    70477050        sfgSizer.Add(bkBox,0,wx.ALIGN_LEFT|wx.EXPAND)
    7048    
    7049         sqBox = wx.BoxSizer(wx.HORIZONTAL)
    7050         sqBox.Add(wx.StaticText(G2frame.dataWindow,label=' Ruland width: '),0,WACV)   
    7051         rulandSldr = wx.Slider(parent=G2frame.dataWindow,style=wx.SL_HORIZONTAL,
    7052             value=int(1000*data['Ruland']))
    7053         sqBox.Add(rulandSldr,1,wx.EXPAND)
    7054         rulandSldr.Bind(wx.EVT_SLIDER, OnRulSlider)
    7055         rulandWdt = G2G.ValidatedTxtCtrl(G2frame.dataWindow,data,'Ruland',nDig=(10,3),min=0.001,max=1.0,
    7056             typeHint=float,OnLeave=AfterChangeNoRefresh)
    7057         sqBox.Add(rulandWdt,0,WACV)   
    7058         sfgSizer.Add(sqBox,0,wx.ALIGN_LEFT|wx.EXPAND)
     7051
     7052        if 'XC' in inst['Type'][0]:
     7053            sqBox = wx.BoxSizer(wx.HORIZONTAL)
     7054            sqBox.Add(wx.StaticText(G2frame.dataWindow,label=' Ruland width: '),0,WACV)   
     7055            rulandSldr = wx.Slider(parent=G2frame.dataWindow,style=wx.SL_HORIZONTAL,
     7056                value=int(1000*data['Ruland']))
     7057            sqBox.Add(rulandSldr,1,wx.EXPAND)
     7058            rulandSldr.Bind(wx.EVT_SLIDER, OnRulSlider)
     7059            rulandWdt = G2G.ValidatedTxtCtrl(G2frame.dataWindow,data,'Ruland',nDig=(10,3),min=0.001,max=1.0,
     7060                typeHint=float,OnLeave=AfterChangeNoRefresh)
     7061            sqBox.Add(rulandWdt,0,WACV)   
     7062            sfgSizer.Add(sqBox,0,wx.ALIGN_LEFT|wx.EXPAND)
    70597063       
    70607064        sqBox = wx.BoxSizer(wx.HORIZONTAL)
Note: See TracChangeset for help on using the changeset viewer.