Changeset 1087 for trunk/GSASII.py
 Timestamp:
 Oct 7, 2013 12:30:10 PM (8 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASII.py
r1086 r1087 1079 1079 else: 1080 1080 return False 1081 x = np.arange(start,end+step,step) 1081 N = int((endstart)/step)+1 1082 x = np.linspace(start,end,N,True) 1082 1083 N = len(x) 1083 1084 rd.powderdata = [ 1084 1085 np.array(x), # xaxis values 1085 None, # powder pattern intensities1086 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), # obscalc profiles1086 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), # obscalc profiles 1090 1091 ] 1091 Tmin = min(rd.powderdata[0])1092 Tmax = max(rd.powderdata[0])1092 Tmin = rd.powderdata[0][0] 1093 Tmax = rd.powderdata[0][1] 1093 1094 # data are read, now store them in the tree 1094 1095 Id = self.PatternTree.AppendItem(parent=self.root,
Note: See TracChangeset
for help on using the changeset viewer.