- Timestamp:
- Jan 20, 2017 4:21:28 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIctrls.py ¶
r2647 r2651 1381 1381 if toggle: 1382 1382 tSizer = wx.FlexGridSizer(cols=2,hgap=5,vgap=5) 1383 tSizer.Add(wx.StaticText(self,label=' Set Stride:'),0,WACV)1383 tSizer.Add(wx.StaticText(self,label=' Apply stride:'),0,WACV) 1384 1384 numbs = [str(i+1) for i in range(9)]+[str(2*i+10) for i in range(6)] 1385 1385 self.stride = wx.ComboBox(self,value='1',choices=numbs,style=wx.CB_READONLY|wx.CB_DROPDOWN) -
TabularUnified trunk/GSASIIpwd.py ¶
r2630 r2651 1640 1640 peak[2*j] = G2mth.getTOFgamma(parmDict,dsp) 1641 1641 1642 def PeaksPrint(dataType,parmDict,sigDict,varyList ):1642 def PeaksPrint(dataType,parmDict,sigDict,varyList,ptsperFW): 1643 1643 print 'Peak coefficients:' 1644 1644 if 'C' in dataType: … … 1652 1652 else: 1653 1653 head += name.center(10)+'esd'.center(10) 1654 head += 'bins'.center(8) 1654 1655 print head 1655 1656 if 'C' in dataType: … … 1670 1671 else: 1671 1672 ptstr += 10*' ' 1673 ptstr += '%9.2f'%(ptsperFW[i]) 1672 1674 print '%s'%(('Peak'+str(i+1)).center(8)),ptstr 1673 1675 … … 1696 1698 yb *= 0. 1697 1699 yd *= 0. 1700 cw = x[1:]-x[:-1] 1698 1701 xBeg = np.searchsorted(x,Limits[0]) 1699 1702 xFin = np.searchsorted(x,Limits[1]) … … 1756 1759 GetInstParms(parmDict,Inst,varyList,Peaks) 1757 1760 if insVary: InstPrint(Inst,sigDict) 1758 GetPeaksParms(Inst,parmDict,Peaks,varyList) 1759 if peakVary: PeaksPrint(dataType,parmDict,sigDict,varyList) 1761 GetPeaksParms(Inst,parmDict,Peaks,varyList) 1762 binsperFWHM = [] 1763 for peak in Peaks: 1764 FWHM = getFWHM(peak[0],Inst) 1765 try: 1766 binsperFWHM.append(FWHM/cw[x.searchsorted(peak[0])]) 1767 except IndexError: 1768 binsperFWHM.append(0.) 1769 if peakVary: PeaksPrint(dataType,parmDict,sigDict,varyList,binsperFWHM) 1770 if min(binsperFWHM) < 3.: 1771 print '*** Warning: calculated peak widths are too narrow to refine profile coefficients ***' 1772 if 'T' in Inst['Type'][0]: 1773 print ' Manually increase sig-0, 1, or 2 in Instrument Parameters' 1774 else: 1775 print ' Manually increase W in Instrument Parameters' 1760 1776 return sigDict,result,sig,Rvals,varyList,parmDict,fullvaryList,badVary 1761 1777
Note: See TracChangeset
for help on using the changeset viewer.