Changeset 3878


Ignore:
Timestamp:
Apr 7, 2019 12:07:20 PM (3 years ago)
Author:
toby
Message:

fix problems due to addition of column to SeqRes? table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3872 r3878  
    61096109    def OnSelectUse(event):
    61106110        dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select rows to use','Select rows',histNames)
    6111         sellist = [i for i,item in enumerate(G2frame.colList[0]) if item]
     6111        sellist = [i for i,item in enumerate(G2frame.colList[1]) if item]
    61126112        dlg.SetSelections(sellist)
    61136113        if dlg.ShowModal() == wx.ID_OK:
    61146114            sellist = dlg.GetSelections()
    61156115            for row in range(G2frame.SeqTable.GetNumberRows()):
    6116                 G2frame.SeqTable.SetValue(row,0,False)
    6117                 G2frame.colList[0][row] = False
     6116                G2frame.SeqTable.SetValue(row,1,False)
     6117                G2frame.colList[1][row] = False
    61186118            for row in sellist:
    6119                 G2frame.SeqTable.SetValue(row,0,True)
    6120                 G2frame.colList[0][row] = True
     6119                G2frame.SeqTable.SetValue(row,1,True)
     6120                G2frame.colList[1][row] = True
    61216121            G2frame.dataDisplay.ForceRefresh()
    61226122        dlg.Destroy()
     
    65876587        else:
    65886588            eqObjList = data['SeqParFitEqList']
    6589         UseFlags = G2frame.SeqTable.GetColValues(0)         
     6589        UseFlags = G2frame.SeqTable.GetColValues(1)
    65906590        for obj in eqObjList:
    65916591            # assemble refined vars for this equation
     
    70037003                break
    70047004        else: # should not happen
    7005             uniqCellIndx[pId] = range(6)
     7005            uniqCellIndx[pId] = list(range(6))
    70067006        for i in uniqCellIndx[pId]:
    70077007            initialCell[str(pId)+'::A'+str(i)] =  RecpCellTerms[pId][i]
     
    70847084    histNames = foundNames
    70857085    nRows = len(histNames)
    7086     G2frame.colList = [range(nRows),nRows*[True]]
     7086    G2frame.colList = [list(range(nRows)),nRows*[True]]
    70877087    G2frame.colSigs = [None,None,]
    70887088    colLabels = ['No.','Use',]
Note: See TracChangeset for help on using the changeset viewer.