Changeset 1931


Ignore:
Timestamp:
Jul 16, 2015 2:27:12 PM (7 years ago)
Author:
vondreele
Message:

Autoupdate of atom drawing table and drawing after LS refinement and Hatom update

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1918 r1931  
    7272import GSASIIpwd as G2pwd
    7373import GSASIIpwdGUI as G2pdG
     74import GSASIIphsGUI as G2phsG
    7475import GSASIIspc as G2spc
    7576import GSASIIstrMain as G2stMn
     
    35503551                            Id = item
    35513552                        item, cookie = self.PatternTree.GetNextChild(self.root, cookie)               
    3552                     if Id:
    3553                         self.PickIdText = None  #force reload of PickId contents
    3554                         self.PatternTree.SelectItem(Id)
    35553553                    if parentName:
    35563554                        parentId = G2gd.GetPatternTreeItemId(self, self.root, parentName)
     
    35613559                        self.PatternTree.SelectItem(itemId)
    35623560                    if 'Phases' in parentName:
     3561                        data = self.PatternTree.GetItemPyData(itemId)
     3562                        data['Drawing']['Atoms'] = []
     3563                        self.dataDisplay.SetSelection(4)    #location of Drawing Data
    35633564                        self.dataDisplay.SetSelection(tabId)
     3565                    elif Id:
     3566                        self.PickIdText = None  #force reload of PickId contents
     3567                        self.PatternTree.SelectItem(Id)
     3568
    35643569            finally:
    35653570                dlg2.Destroy()
  • trunk/GSASIIphsGUI.py

    r1930 r1931  
    16401640                Error += 'Hydrogen atom not in atom list - ignored\n'
    16411641                continue
     1642        data['Drawing']['Atoms'] = []
     1643        UpdateDrawAtoms()
    16421644        FillAtomsGrid(Atoms)
    16431645        G2plt.PlotStructure(G2frame,data)
Note: See TracChangeset for help on using the changeset viewer.