- Timestamp:
- Oct 27, 2010 6:11:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Analysis/Packages/Wrapper_v40.ipf
r753 r762 794 794 fitYw = NaN 795 795 796 Variable useRes =0,isUSANS=0,val796 Variable useResol=0,isUSANS=0,val 797 797 if(stringmatch(funcStr, "Smear*")) // if it's a smeared function, need a struct 798 useRes =1798 useResol=1 799 799 endif 800 800 if(dimsize(resW,1) > 4) … … 912 912 Variable chi,pt 913 913 914 chi = DoGenCurveFit(useRes ,useCursors,sw,fitYw,fs,funcStr,getHStr(hold),val,lolim,hilim,pt1,pt2)914 chi = DoGenCurveFit(useResol,useCursors,sw,fitYw,fs,funcStr,getHStr(hold),val,lolim,hilim,pt1,pt2) 915 915 pt = val 916 916 … … 922 922 // so there are only three conditions to test == 1 + 3 + 3 + 1 = 8 conditions 923 923 924 if(useRes && useResiduals && useTextBox) //do it all924 if(useResol && useResiduals && useTextBox) //do it all 925 925 FuncFit/H=getHStr(hold) /NTHR=0 /TBOX=(tb) $funcStr cw, yw[pt1,pt2] /X=xw /W=sw /I=1 /E=eps /D=fitYw /C=constr /STRC=fs /R /NWOK 926 926 break 927 927 endif 928 928 929 if(useRes && useResiduals) //res + resid929 if(useResol && useResiduals) //res + resid 930 930 FuncFit/H=getHStr(hold) /NTHR=0 $funcStr cw, yw[pt1,pt2] /X=xw /W=sw /I=1 /E=eps /D=fitYw /C=constr /STRC=fs /R /NWOK 931 931 break … … 933 933 934 934 935 if(useRes && useTextBox) //res + text935 if(useResol && useTextBox) //res + text 936 936 FuncFit/H=getHStr(hold) /NTHR=0 /TBOX=(tb) $funcStr cw, yw[pt1,pt2] /X=xw /W=sw /I=1 /E=eps /D=fitYw /C=constr /STRC=fs /NWOK 937 937 break 938 938 endif 939 939 940 if(useRes ) //res only940 if(useResol) //res only 941 941 // Print "timing test for Cylinder_PolyRadius---" 942 942 // Variable t0 = stopMStimer(-2) … … 962 962 963 963 964 ///// same as above, but all without useRes (no /STRC flag)964 ///// same as above, but all without useResol (no /STRC flag) 965 965 if(useResiduals && useTextBox) //resid+ text 966 966 FuncFit/H=getHStr(hold) /NTHR=0 /TBOX=(tb) $funcStr cw, yw[pt1,pt2] /X=xw /W=sw /I=1 /E=eps /D=fitYw /C=constr /R /NWOK … … 1164 1164 Execute "ExportGizmo Clip" //this ALWAYS is a PICT or BMP. Gizmo windows are different... 1165 1165 LoadPict/Q/O "Clipboard",tmp_Gizmo 1166 Notebook $nb scaling={50, 50}, picture={tmp_Gizmo(0, 0, 800, 600), 0, 1}, text="\r" 1167 endif 1168 //Notebook Report picture={Table1, 0, 0}, text="\r" 1166 Notebook $nb picture={tmp_Gizmo(0, 0, 800, 600), 0, 1}, text="\r" 1167 endif 1169 1168 1170 1169 // show the top of the report
Note: See TracChangeset
for help on using the changeset viewer.