Changeset 869
- Timestamp:
- Oct 9, 2012 1:46:21 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Analysis/Packages/Wrapper_v40.ipf
r856 r869 3 3 #pragma IgorVersion=6.1 4 4 5 6 // this is the flag for the relative error = W_sigma/coef that will 7 // trip the bold/red color of W_sigma in the table. 8 // 9 Constant kRelErrorTolerance=0.5 5 10 6 11 //Macro OpenWrapperPanel() … … 1023 1028 print w_sigma 1024 1029 String resultStr="" 1030 Variable maxRelError=0 1025 1031 1026 1032 if(waveexists(W_sigma)) … … 1034 1040 // -- not really, since any switch of the function menu takes W_Sigma off 1035 1041 endif 1042 // then do I want to color it if the errors are horrible? 1043 Duplicate/O cw, relError 1044 relError = W_sigma/cw 1045 maxRelError = WaveMax(relError) 1046 if(maxRelError > kRelErrorTolerance) 1047 ModifyTable/W=wrapperPanel#T0 style(W_sigma)=1,rgb(W_sigma)=(65535,0,0) 1048 else 1049 ModifyTable/W=wrapperPanel#T0 style=0,rgb=(0,0,0) 1050 endif 1051 1036 1052 endif 1037 1053
Note: See TracChangeset
for help on using the changeset viewer.