Changeset 2726


Ignore:
Timestamp:
Feb 27, 2017 10:24:00 AM (5 years ago)
Author:
vondreele
Message:

fix data window resizing problem after DoRefine?
trap Pawley issues where no histograms are defined

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2719 r2726  
    39283928        else:
    39293929            self.ErrorDialog('Refinement error',Msg)
     3930        self.dataFrame.userReSize = False
    39303931       
    39313932    def SaveTreeSetting(self):
  • trunk/GSASIIgrid.py

    r2722 r2726  
    26672667        except:         #avoid bad tree item on start via gpx file selection
    26682668            parent = 0
    2669         if self.userReSize and parent and self.G2frame.PatternTree.GetItemText(parent) == "Phases": 
     2669        if self.userReSize and parent and self.G2frame.PatternTree.GetItemText(parent) == "Phases":
    26702670            if self.lastSize == event.EventObject.GetSize():
    26712671#                if GSASIIpath.GetConfigValue('debug'):
     
    26912691        '''
    26922692        self.userReSize = False
     2693#        if GSASIIpath.GetConfigValue('debug'):
     2694#            print 'setSizePosLeft size',Size,self.lastSize
    26932695        Size = list(Size)
    26942696        id = self.G2frame.PatternTree.GetSelection()
  • trunk/GSASIIphsGUI.py

    r2718 r2726  
    73787378            im = 1
    73797379        HistoNames = filter(lambda a:Histograms[a]['Use']==True,Histograms.keys())
     7380        if not len(HistoNames):
     7381            G2frame.ErrorDialog('Pawley estimate','No histograms defined for this phase')
     7382            return
    73807383        PatternId = G2gd.GetPatternTreeItemId(G2frame,G2frame.root,HistoNames[0])       #only use 1st histogram
    73817384        xdata = G2frame.PatternTree.GetItemPyData(PatternId)[1]
Note: See TracChangeset for help on using the changeset viewer.