Ignore:
Timestamp:
Apr 23, 2019 1:11:07 PM (3 years ago)
Author:
toby
Message:

bugfix for plot updates: conflict for single xtal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3913 r3926  
    19981998
    19991999    def AddSimulatedPowder(self,ttArr,intArr,HistName,Lam1,Lam2):
    2000         '''Create a PDWR entry for a computed powder pattern
     2000        '''Create a PWDR entry for a computed powder pattern
    20012001        '''
    20022002        # get a list of existing histograms
     
    45734573        self.SaveTreeSetting() # save the current tree selection
    45744574        self.GPXtree.SaveExposedItems()             # save the exposed/hidden tree items
    4575         refPlotUpdate = G2plt.PlotPatterns(self,refineMode=True) # prepare for plot updating
     4575        if self.GPXtree.GetItemText(self.PatternId).startswith('PWDR '):
     4576            refPlotUpdate = G2plt.PlotPatterns(self,refineMode=True) # prepare for plot updating
     4577        else:
     4578            refPlotUpdate = None
    45764579        try:
    45774580            OK,Msg = G2stMn.Refine(self.GSASprojectfile,dlg,refPlotUpdate=refPlotUpdate)    #Msg is Rvals dict if Ok=True
     
    47134716            histNames.reverse()
    47144717        # select it
    4715         self.PatternId = GetGPXtreeItemId(self,self.root,histNames[0])       
    4716         refPlotUpdate = G2plt.PlotPatterns(self,refineMode=True) # prepare for plot updating
     4718        self.PatternId = GetGPXtreeItemId(self,self.root,histNames[0])
     4719        if self.GPXtree.GetItemText(self.PatternId).startswith('PWDR '):
     4720            refPlotUpdate = G2plt.PlotPatterns(self,refineMode=True) # prepare for plot updating
     4721        else:
     4722            refPlotUpdate = None
    47174723        try:
    47184724            OK,Msg = G2stMn.SeqRefine(self.GSASprojectfile,dlg,refPlotUpdate) #Msg is Rvals dict if Ok=True
Note: See TracChangeset for help on using the changeset viewer.