Changeset 167 for sans/SANSReduction
- Timestamp:
- Sep 21, 2007 3:18:47 PM (16 years ago)
- Location:
- sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.00
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.00/Correct.ipf
r116 r167 958 958 endif 959 959 //get input from the user 960 NewDataFolder/O root: tmp_trans961 Variable/G root: tmp_trans:inputTrans=0.9962 Variable/G root: tmp_trans:returnCode=0960 NewDataFolder/O root:myGlobals:tmp_trans 961 Variable/G root:myGlobals:tmp_trans:inputTrans=0.9 962 Variable/G root:myGlobals:tmp_trans:returnCode=0 963 963 DoTransInput(type) 964 NVAR inputTrans=root: tmp_trans:inputTrans965 NVAR code=root: tmp_trans:returnCode964 NVAR inputTrans=root:myGlobals:tmp_trans:inputTrans 965 NVAR code=root:myGlobals:tmp_trans:returnCode 966 966 newTrans=inputTrans //keep a copy before deleting everything 967 967 newCode=code … … 970 970 Endif 971 971 // printf "You entered %g and the code is %g\r",newTrans,newCode 972 KillDataFolder root:tmp_trans972 // KillDataFolder root:tmp_trans 973 973 974 974 if(newCode==1) … … 987 987 988 988 // Print "ignore now" 989 NVAR val=root: tmp_trans:returnCode989 NVAR val=root:myGlobals:tmp_trans:returnCode 990 990 val=0 //code for ignore once 991 991 … … 1002 1002 DrawText 15,125,"(Reset this in Preferences)" 1003 1003 SetVariable setvar0,pos={20,170},size={160,17},limits={0,1,0.01} 1004 SetVariable setvar0,value= root: tmp_trans:inputTrans,title="New Transmission"1004 SetVariable setvar0,value= root:myGlobals:tmp_trans:inputTrans,title="New Transmission" 1005 1005 1006 1006 Button button0,pos={36,56},size={120,20},proc=IgnoreNowButton,title="Ignore This Time" … … 1015 1015 1016 1016 // Print "ignore always" 1017 NVAR val=root: tmp_trans:returnCode1017 NVAR val=root:myGlobals:tmp_trans:returnCode 1018 1018 val=1 //code for ignore always 1019 1019 DoWindow/K tmp_GetInputPanel // Kill self … … 1024 1024 1025 1025 // Print "use new Value" 1026 NVAR val=root: tmp_trans:returnCode1026 NVAR val=root:myGlobals:tmp_trans:returnCode 1027 1027 val=2 //code for use new Value 1028 1028 DoWindow/K tmp_GetInputPanel // Kill self … … 1033 1033 1034 1034 // Print "Abort" 1035 NVAR val=root: tmp_trans:returnCode1035 NVAR val=root:myGlobals:tmp_trans:returnCode 1036 1036 val=4 //code for abort 1037 1037 DoWindow/K tmp_GetInputPanel // Kill self -
sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.00/NSORT.ipf
r143 r167 767 767 PopupMenu popup_3,mode=1,value= #"root:myGlobals:NSORT:gDataPopList_3" 768 768 PopupMenu popup_3,help={"Choose the dataset with the highest overall q-value (shortest detector distance), or NONE if no third set desired"} 769 CheckBox AutoCheck,pos={14,310},size={100,20},title="Auto Scale",value= 1769 CheckBox AutoCheck,pos={14,310},size={100,20},title="Auto Scale",value=0 770 770 CheckBox AutoCheck,help={"If checked, the scale factor will be automatically determined, if not checked, the current values in the fields will be used"} 771 771 EndMacro … … 831 831 While(0) 832 832 ControlUpdate/A/W=NSORT_Panel 833 DoUpdate 833 834 834 835 End … … 1050 1051 Sort q12, q12,i12,sig12 1051 1052 //at this point 1-2 are combined 1053 1054 ControlUpdate/A/W=NSORT_Panel 1055 DoUpdate 1056 1052 1057 //do we need to continue, or write out the set here and stop? 1053 1058 if(cmpstr(name3,"none") == 0) … … 1118 1123 Endif 1119 1124 1125 ControlUpdate/A/W=NSORT_Panel 1126 DoUpdate 1127 1120 1128 //Print "NSORT-ed ",name1," + ", name2, " + ", name3 1121 1129 //Print "normalized to ",normTo … … 1217 1225 //Print "normalized to ",normTo 1218 1226 //Print "multiplicative factor = ",norm12 1219 1227 ControlUpdate/A/W=NSORT_Panel 1228 DoUpdate 1229 1220 1230 1221 1231 //Make the combined, scaled dataset by overwriting the old sets … … 1316 1326 //Print "normalized to ",normTo 1317 1327 //Print "multiplicative factor 1-2 = ",norm12," multiplicative factor 12 - 3 = ",norm23 1318 1328 ControlUpdate/A/W=NSORT_Panel 1329 DoUpdate 1319 1330 1320 1331 Make/O/N=(n123) q123,i123,sig123,sq123,qb123,fs123 -
sans/SANSReduction/trunk/Put in User Procedures/SANS_Reduction_v5.00/RawWindowHook.ipf
r116 r167 61 61 SetWindow SANS_Data,hook=RawWindowHook,hookevents=2 62 62 ControlBar 100 63 Button doAve,pos={290,23},size={50,20},proc=ShowAvgPanel_SANSData,title="I vs. Q" 64 Button doAve,help={"This will circularly average the data to I vs. Q"} 63 65 64 SetVariable xpos,pos={7,5},size={50,17},title="X" 66 65 SetVariable xpos,limits={-Inf,Inf,0},value= root:myGlobals:gXPos … … 94 93 Button maskButton size={84,20}, pos={170,53}, proc=maskButtonProc,title="Show Mask" 95 94 Button maskButton help={"If a mask has been loaded this will overlay it on the current plot"} 95 96 GroupBox slideGrp,pos={268,46},size={124,48},title="Color Map" 97 //draw after the group box so these are on "top" of the group box 98 Button doAve,pos={290,23},size={50,20},proc=ShowAvgPanel_SANSData,title="I vs. Q" 99 Button doAve,help={"This will circularly average the data to I vs. Q"} 96 100 Slider loSlide,pos={280,77},size={100,16},proc=MapSliderProc 97 101 Slider loSlide,limits={0,1,0.01},value= 0,vert= 0,ticks= 0 … … 100 104 Slider hiSlide,limits={0,1,0.01},value= 1,vert= 0,ticks= 0 101 105 Slider hiSlide,help={"Adjust the high threshold of the color map"} 102 GroupBox slideGrp,pos={268,46},size={124,51},title="Color Map" 106 103 107 endif 104 108
Note: See TracChangeset
for help on using the changeset viewer.