Changeset 1932


Ignore:
Timestamp:
Jul 16, 2015 4:44:06 PM (7 years ago)
Author:
vondreele
Message:

fix problems with plotting & phase handling when there is no structure (e.g. Pawley refinements)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1931 r1932  
    35603560                    if 'Phases' in parentName:
    35613561                        data = self.PatternTree.GetItemPyData(itemId)
    3562                         data['Drawing']['Atoms'] = []
    3563                         self.dataDisplay.SetSelection(4)    #location of Drawing Data
     3562                        if data['Drawing']:
     3563                            data['Drawing']['Atoms'] = []
     3564                            self.dataDisplay.SetSelection(4)    #location of Drawing Data
    35643565                        self.dataDisplay.SetSelection(tabId)
    35653566                    elif Id:
  • trunk/GSASIIplot.py

    r1928 r1932  
    14071407            pick = str(G2frame.itemPicked).split('(')[1].strip(')')
    14081408            if 'line' not in pick:       #avoid data points, etc.
    1409                 data = G2frame.PatternTree.GetItemPyData(PickId)
     1409                data = G2frame.PatternTree.GetItemPyData(PatternId)
    14101410                num = Phases.keys().index(pick)
    14111411                if num:
Note: See TracChangeset for help on using the changeset viewer.