Changeset 1290


Ignore:
Timestamp:
Apr 21, 2014 12:42:07 PM (8 years ago)
Author:
vondreele
Message:

small changes to seq refinement results: fic status bar creation & color deltaChi column as >10% red & >1% yellow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r1288 r1290  
    38263826    SetDataMenuBar(G2frame,G2frame.dataFrame.SequentialMenu)
    38273827    G2frame.dataFrame.SetLabel('Sequential refinement results')
    3828     G2frame.dataFrame.CreateStatusBar()
     3828    if not G2frame.dataFrame.GetStatusBar():
     3829        Status = G2frame.dataFrame.CreateStatusBar()
     3830        Status.SetStatusText('')
    38293831    G2frame.dataFrame.Bind(wx.EVT_MENU, OnSaveSelSeq, id=wxID_SAVESEQSEL)
    38303832    G2frame.dataFrame.Bind(wx.EVT_MENU, OnSaveSelSeqCSV, id=wxID_SAVESEQSELCSV)
     
    39773979    # highlight unconverged shifts
    39783980    for row,name in enumerate(histNames):
    3979         if not data[name]['Rvals']['converged']:
     3981        deltaChi = G2frame.SeqTable.GetValue(row,deltaChiCol)
     3982        if deltaChi > 10.:
     3983            G2frame.dataDisplay.SetCellStyle(row,deltaChiCol,color=wx.Color(255,0,0))
     3984        elif deltaChi > 1.0:
    39803985            G2frame.dataDisplay.SetCellStyle(row,deltaChiCol,color=wx.Color(255,255,0))
    39813986        # colList += [[data[name]['Rvals']['converged'] for name in histNames]]
Note: See TracChangeset for help on using the changeset viewer.