Changeset 1076 for trunk/GSASII.py


Ignore:
Timestamp:
Oct 3, 2013 12:52:28 PM (8 years ago)
Author:
vondreele
Message:

again fix MC/SA window scroll behavior & small start on dummy histograms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1049 r1076  
    558558            Id = self.PatternTree.AppendItem(parent=self.root,
    559559                                             text='HKLF '+HistName)
    560             self.PatternTree.SetItemPyData(Id,[{'wtFactor':1.0},rd.RefList])
     560            self.PatternTree.SetItemPyData(Id,[{'wtFactor':1.0,'Dummy':False},rd.RefList])
    561561            Sub = self.PatternTree.AppendItem(Id,text='Instrument Parameters')
    562562            self.PatternTree.SetItemPyData(Sub,rd.Parameters)
     
    977977            Tmin = min(rd.powderdata[0])
    978978            Tmax = max(rd.powderdata[0])
    979             self.PatternTree.SetItemPyData(Id,[{'wtFactor':1.0},rd.powderdata])
     979            self.PatternTree.SetItemPyData(Id,[{'wtFactor':1.0,'Dummy':False},rd.powderdata])
    980980            self.PatternTree.SetItemPyData(
    981981                self.PatternTree.AppendItem(Id,text='Comments'),
     
    17121712                    if Id:
    17131713                        Sample = G2pdG.SetDefaultSample()
    1714                         self.PatternTree.SetItemPyData(Id,[{'wtFactor':1.0},[np.array(Xsum),np.array(Ysum),np.array(Wsum),
     1714                        self.PatternTree.SetItemPyData(Id,[{'wtFactor':1.0,'Dummy':False},[np.array(Xsum),np.array(Ysum),np.array(Wsum),
    17151715                            np.array(YCsum),np.array(YBsum),np.array(YDsum)]])
    17161716                        self.PatternTree.SetItemPyData(self.PatternTree.AppendItem(Id,text='Comments'),Comments)                   
     
    17261726                        self.PatternTree.SelectItem(Id)
    17271727                        self.PatternTree.Expand(Id)
    1728                    
    17291728            finally:
    17301729                dlg.Destroy()
Note: See TracChangeset for help on using the changeset viewer.