Ignore:
Timestamp:
Sep 27, 2007 1:45:22 PM (15 years ago)
Author:
srkline
Message:

Changed macros in models that plot distributions, Rg, I(0), etc. to look for the coef_ wave, and abort if it cannot be found. The user is advised to plot the unsmeared model to use with the extra macros. This is the easy way out. There may be a way to guess what other valid coefficient waves exist, but that would be cumbersome and possibly require user intervention as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/GaussSpheres.ipf

    r166 r169  
    219219        Variable nden,vpoly,Ravg,p,Rg,I0,Sv,phi 
    220220         
    221         if(WaveExists(coef_pgs)==0) 
    222                 abort "You need to plot the model first to create the coefficient table" 
     221        if(Exists("coef_pgs")!=1) 
     222                abort "You need to plot the unsmeared model first to create the coefficient table" 
    223223        Endif 
    224224        Ravg = coef_pgs[1]  // mean radius (A) 
     
    250250        variable pd,avg,zz,maxr 
    251251         
    252         if(WaveExists(coef_pgs)==0) 
    253                 abort "You need to plot the model first to create the coefficient table" 
     252        if(Exists("coef_pgs")!=1) 
     253                abort "You need to plot the unsmeared model first to create the coefficient table" 
    254254        Endif 
    255255        pd=coef_pgs[2] 
Note: See TracChangeset for help on using the changeset viewer.