Changeset 1087 for trunk/GSASII.py


Ignore:
Timestamp:
Oct 7, 2013 12:30:10 PM (8 years ago)
Author:
vondreele
Message:

simulated CW powder data now complete with Poisson errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1086 r1087  
    10791079            else:
    10801080                return False
    1081             x = np.arange(start,end+step,step)
     1081            N = int((end-start)/step)+1
     1082            x = np.linspace(start,end,N,True)
    10821083            N = len(x)
    10831084        rd.powderdata = [
    10841085            np.array(x), # x-axis values
    1085             None, # powder pattern intensities
    1086             None, # 1/sig(intensity)^2 values (weights)
    1087             np.zeros(N), # calc. intensities (zero)
    1088             np.zeros(N), # calc. background (zero)
    1089             np.zeros(N), # obs-calc profiles
     1086            np.zeros_like(x), # powder pattern intensities
     1087            np.ones_like(x), # 1/sig(intensity)^2 values (weights)
     1088            np.zeros_like(x), # calc. intensities (zero)
     1089            np.zeros_like(x), # calc. background (zero)
     1090            np.zeros_like(x), # obs-calc profiles
    10901091            ]
    1091         Tmin = min(rd.powderdata[0])
    1092         Tmax = max(rd.powderdata[0])
     1092        Tmin = rd.powderdata[0][0]
     1093        Tmax = rd.powderdata[0][-1]
    10931094        # data are read, now store them in the tree
    10941095        Id = self.PatternTree.AppendItem(parent=self.root,
Note: See TracChangeset for help on using the changeset viewer.