Changeset 443 for trunk/GSASII.py


Ignore:
Timestamp:
Dec 16, 2011 1:15:09 PM (11 years ago)
Author:
vondreele
Message:

make sum powder profiles numpy arrays
change name UpdateBackgroundGrid? to UpdateBackground?
min size is 1 nanometer = 10A
implement diffuse scattering model for background
iso/aniso Size & Mustrain are now Size:i/a instead of 0/1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r441 r443  
    730730                        if scale:
    731731                            Comments.append("%10.3f %s" % (scale,' * '+name))
    732                             x,y,w,yc,yb,yd = data
     732                            x,y,w,yc,yb,yd = data   #numpy arrays!
    733733                            v = 1./w
    734734                            if lenX:
     
    771771                    if Id:
    772772                        Sample = G2pdG.SetDefaultSample()
    773                         self.PatternTree.SetItemPyData(Id,[[''],[Xsum,Ysum,Wsum,YCsum,YBsum,YDsum]])
     773                        self.PatternTree.SetItemPyData(Id,[[''],[np.array(Xsum),np.array(Ysum),np.array(Wsum),
     774                            np.array(YCsum),np.array(YBsum),np.array(YDsum)]])
    774775                        self.PatternTree.SetItemPyData(self.PatternTree.AppendItem(Id,text='Comments'),Comments)                   
    775776                        self.PatternTree.SetItemPyData(self.PatternTree.AppendItem(Id,text='Limits'),[tuple(Xminmax),Xminmax])
Note: See TracChangeset for help on using the changeset viewer.