Changeset 1280


Ignore:
Timestamp:
Apr 17, 2014 2:48:59 PM (8 years ago)
Author:
vondreele
Message:

move a check on SampleContrast?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r1279 r1280  
    27112711       
    27122712    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             return
    27182713        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
    27192719            G2sasd.SizeDistribution(Profile,ProfDict,Limits,Substances,Sample,data)
    27202720            G2plt.PlotPatterns(G2frame,plotType='SASD',newPlot=True)
     
    29202920            PlotText = G2frame.G2plotNB.nb.GetPageText(G2frame.G2plotNB.nb.GetSelection())
    29212921            if 'Powder' in PlotText:
    2922                 G2plt.PlotPatterns(G2frame,plotType='SASD',newPlot=True)
     2922                G2plt.PlotPatterns(G2frame,plotType='SASD',newPlot=False)
    29232923            elif 'Size' in PlotText:
    29242924                G2plt.PlotSASDSizeDist(G2frame)
Note: See TracChangeset for help on using the changeset viewer.