Changeset 4087


Ignore:
Timestamp:
Aug 10, 2019 1:41:19 PM (4 years ago)
Author:
toby
Message:

Fix Andrey's bug: remove cell parms for unused phases in seq res table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4085 r4087  
    72657265    # add unique cell parameters 
    72667266    if Controls.get('ShowCell',False) and len(newCellDict):
     7267        phaseLookup = {Phases[phase]['pId']:phase for phase in Phases}
    72677268        for pId in sorted(RecpCellTerms):
    72687269            pfx = str(pId)+'::' # prefix for A values from phase
     
    73137314                    vol = None
    73147315                # add only unique values to table
    7315                 cells += [[c[i] for i in uniqCellIndx[pId]]+[vol]]
    7316                 cellESDs += [[cE[i] for i in uniqCellIndx[pId]]+[cE[-1]]]
     7316                if name in Phases[phaseLookup[pId]]['Histograms']:
     7317                    cells += [[c[i] for i in uniqCellIndx[pId]]+[vol]]
     7318                    cellESDs += [[cE[i] for i in uniqCellIndx[pId]]+[cE[-1]]]
     7319                else:
     7320                    cells += [[None for i in uniqCellIndx[pId]]+[None]]
     7321                    cellESDs += [[None for i in uniqCellIndx[pId]]+[None]]
    73177322            G2frame.colList += zip(*cells)
    73187323            G2frame.colSigs += zip(*cellESDs)
Note: See TracChangeset for help on using the changeset viewer.