Changeset 1280
- Timestamp:
- Apr 17, 2014 2:48:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIpwdGUI.py
r1279 r1280 2711 2711 2712 2712 def OnFitModel(event): 2713 if not any(Sample['Contrast']):2714 G2frame.ErrorDialog('No contrast; your sample is a vacuum!',2715 'You need to define a scattering substance!\n'+ \2716 ' Do Substances and then Sample parameters')2717 return2718 2713 if data['Current'] == 'Size dist.': 2714 if not any(Sample['Contrast']): 2715 G2frame.ErrorDialog('No contrast; your sample is a vacuum!', 2716 'You need to define a scattering substance!\n'+ \ 2717 ' Do Substances and then Sample parameters') 2718 return 2719 2719 G2sasd.SizeDistribution(Profile,ProfDict,Limits,Substances,Sample,data) 2720 2720 G2plt.PlotPatterns(G2frame,plotType='SASD',newPlot=True) … … 2920 2920 PlotText = G2frame.G2plotNB.nb.GetPageText(G2frame.G2plotNB.nb.GetSelection()) 2921 2921 if 'Powder' in PlotText: 2922 G2plt.PlotPatterns(G2frame,plotType='SASD',newPlot= True)2922 G2plt.PlotPatterns(G2frame,plotType='SASD',newPlot=False) 2923 2923 elif 'Size' in PlotText: 2924 2924 G2plt.PlotSASDSizeDist(G2frame)
Note: See TracChangeset
for help on using the changeset viewer.