Changeset 2800
- Timestamp:
- Apr 21, 2017 8:36:17 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r2788 r2800 1824 1824 self.PatternTree.Expand(Id) 1825 1825 self.PatternTree.SelectItem(Id) 1826 print(u'Added simulation powder data {}' ++1827 ' with parameters from {}'.format( HistName,rd.instmsg))1826 print(u'Added simulation powder data {}'.format(HistName)+ 1827 ' with parameters from {}'.format(rd.instmsg)) 1828 1828 1829 1829 # make a list of phase names -
trunk/GSASIIphsGUI.py
r2770 r2800 2820 2820 G2plt.PlotXY(G2frame,resultXY,XY2=resultXY2,labelX=r'$\mathsf{2\theta}$', 2821 2821 labelY='Intensity',newPlot=True,Title='Sequential simulations on '+pName, 2822 lines= False,names=seqNames)2822 lines=True,names=seqNames) 2823 2823 2824 2824 def CellSizer(): … … 2997 2997 event.Skip() 2998 2998 Layer['Name'] = layerName.GetValue() 2999 UpdateLayerData()2999 wx.CallAfter(UpdateLayerData) 3000 3000 3001 3001 def OnAddAtom(event): 3002 3002 Layer['Atoms'].append(['Unk','Unk',0.,0.,0.,1.,0.01]) 3003 UpdateLayerData()3003 wx.CallAfter(UpdateLayerData) 3004 3004 3005 3005 def OnSymm(event): … … 3022 3022 data['Layers']['AtInfo'][atType] = G2elem.GetAtomInfo(atType) 3023 3023 PE.Destroy() 3024 UpdateLayerData()3024 wx.CallAfter(UpdateLayerData) 3025 3025 else: 3026 3026 event.Skip() -
trunk/GSASIIpwd.py
r2786 r2800 2548 2548 x0 = profile[0] 2549 2549 iBeg = np.searchsorted(x0,limits[0]) 2550 iFin = np.searchsorted(x0,limits[1]) +12550 iFin = np.searchsorted(x0,limits[1]) 2551 2551 if iFin-iBeg > 20000: 2552 2552 iFin = iBeg+20000 … … 2702 2702 profile[3][iBeg:iFin] = BrdSpec*scale+profile[4][iBeg:iFin] 2703 2703 if not np.any(profile[1]): #fill dummy data x,y,w,yc,yb,yd 2704 rv = st.poisson(profile[3][iBeg:iFin]) 2705 profile[1][iBeg:iFin] = rv.rvs() 2704 try: 2705 rv = st.poisson(profile[3][iBeg:iFin]) 2706 profile[1][iBeg:iFin] = rv.rvs() 2707 except ValueError: 2708 profile[1][iBeg:iFin] = profile[3][iBeg:iFin] 2706 2709 Z = np.ones_like(profile[3][iBeg:iFin]) 2707 2710 Z[1::2] *= -1
Note: See TracChangeset
for help on using the changeset viewer.