Ignore:
Timestamp:
Oct 28, 2014 10:38:51 AM (8 years ago)
Author:
srkline
Message:

Correcting the search in the patch panel for certain cases where multiple run numbers could be returned if they matched the year.

Adding routines and preferences to be able to add together raw data files with different attenuation. Not sure why this was not possible in the past. There must be a good reason for this. This is toggled on/off with a SANS preference checkbox. Default is OFF

Adding to Transmission "guessing" to show buttons to bump the guess to one more or one fewer character, rather than forcing an exit if the match is not correct.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/PlotManager/PlotUtilsMacro_v40.ipf

    r943 r948  
    13841384        val = NumVarOrDefault("root:Packages:NIST:gDoTransmissionCorr", 1 ) 
    13851385        Variable/G root:Packages:NIST:gDoTransmissionCorr = 1 
    1386          
     1386 
     1387// flag to allow adding raw data files with different attenuation (normally not done)    
     1388        val = NumVarOrDefault("root:Packages:NIST:gDoAdjustRAW_Atten",0) 
     1389        Variable/G root:Packages:NIST:gDoAdjustRAW_Atten=val 
    13871390         
    13881391        /// items for SANS Analysis 
     
    14461449         
    14471450        NVAR gVal = root:Packages:NIST:gDoDetectorEffCorr 
     1451        gVal = checked 
     1452End 
     1453 
     1454Function DoRawAttenAdjPref(ctrlName,checked) : CheckBoxControl 
     1455        String ctrlName 
     1456        Variable checked 
     1457         
     1458        NVAR gVal = root:Packages:NIST:gDoAdjustRAW_Atten 
    14481459        gVal = checked 
    14491460End 
     
    14941505        CheckBox PrefCtrl_1g title="Do Efficiency Correction?",size={140,14},proc=DoEfficiencyCorrPref 
    14951506        CheckBox PrefCtrl_1g value=root:Packages:NIST:gDoDetectorEffCorr,pos={255,120},help={"TURN OFF ONLY FOR DEBUGGING. This corrects the data for angle dependent detector efficiency."} 
    1496  
     1507        CheckBox PrefCtrl_1h title="Adjust RAW attenuation?",size={140,14},proc=DoRawAttenAdjPref 
     1508        CheckBox PrefCtrl_1h value=root:Packages:NIST:gDoAdjustRAW_Atten,pos={255,140},help={"This is normally not done"} 
    14971509 
    14981510        CheckBox PrefCtrl_1a,disable=1 
     
    15031515        CheckBox PrefCtrl_1f,disable=1 
    15041516        CheckBox PrefCtrl_1g,disable=1 
     1517        CheckBox PrefCtrl_1h,disable=1 
    15051518 
    15061519//on tab(2) - USANS 
Note: See TracChangeset for help on using the changeset viewer.