Changeset 1313 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
May 1, 2014 8:54:41 AM (9 years ago)
Author:
vondreele
Message:

fix contrast calculation for sasd.
put in a wx.CallAfter?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r1309 r1313  
    25002500        dlg.Destroy()
    25012501       
    2502        
    25032502    def OnDeleteElement(event):
    25042503        TextList = []
     
    25652564            data['Substances'][name]['XAnom density'] = contrst
    25662565            data['Substances'][name]['XAbsorption'] = absorb
    2567             UpdateSubstanceGrid(G2frame,data)
     2566            wx.CallAfter(UpdateSubstanceGrid,G2frame,data)
    25682567       
    25692568        Indx = {}
     
    30973096                sizeSizer.Add(matSel,0,WACV) #do neutron test here?
    30983097                rho = Substances['Substances'][level['Controls']['Material']].get('XAnom density',0.0)
    3099                 contrast = rho**2-rhoMat**2
     3098                contrast = (rho-rhoMat)**2
    31003099                sizeSizer.Add(wx.StaticText(G2frame.dataDisplay,label=' Resonant X-ray contrast: '),0,WACV)
    31013100                sizeSizer.Add(wx.StaticText(G2frame.dataDisplay,label='  %.2f 10%scm%s'%(contrast,Pwr20,Pwrm4)),0,WACV)
Note: See TracChangeset for help on using the changeset viewer.