Changeset 1780 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Apr 7, 2015 5:14:33 PM (7 years ago)
Author:
vondreele
Message:

force collapse of all children when main tree item is collapsed
begin texture fitting from seq. refinements
fix bugs in plotting if all SH coeff = 0
set background on Fcsq when delt = 3sig & 10 sig

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r1778 r1780  
    30063006        if needed using MakeReflectionTable
    30073007        '''
     3008        def setBackgroundColors(im):
     3009            for r in range(G2frame.refTable[phaseName].GetNumberRows()):
     3010                Fosq = float(G2frame.refTable[phaseName].GetCellValue(r,5+im))
     3011                Fcsq = float(G2frame.refTable[phaseName].GetCellValue(r,7+im))
     3012                sig = float(G2frame.refTable[phaseName].GetCellValue(r,6+im))
     3013                rat = abs(Fosq-Fcsq)/sig
     3014                if  rat > 10.:
     3015                    G2frame.refTable[phaseName].SetCellBackgroundColour(r,7+im,wx.RED)
     3016                elif rat > 3.0:
     3017                    G2frame.refTable[phaseName].SetCellBackgroundColour(r,7+im,wx.Colour(255,255,0))
     3018                else:
     3019                    G2frame.refTable[phaseName].SetCellBackgroundColour(r,7+im,wx.WHITE)
     3020                                                 
    30083021        G2frame.RefList = phaseName
    30093022        G2frame.dataFrame.SetLabel('Reflection List for '+phaseName)
     
    30153028            G2frame.refTable[phaseName].SetMargins(0,0)
    30163029            G2frame.refTable[phaseName].AutoSizeColumns(False)
     3030            setBackgroundColors(0)
    30173031        # raise the tab (needed for 1st use and from OnSelectPhase)
    30183032        for PageNum in range(G2frame.dataDisplay.GetPageCount()):
Note: See TracChangeset for help on using the changeset viewer.