Ignore:
Timestamp:
May 18, 2018 10:32:22 AM (5 years ago)
Author:
srkline
Message:

Significant restructuring of V_ExecuteProtocol to make the logic of the flow more tractable and adaptable in the future.

Added major change to VSANS event mode reduction panel to allow F and M binned events to be saved to a copy of the correspondng data file. A new data reduction panel for multiple slice reduction is now presented for Event data. This allows reduction of a single slice (all 8 F,M panels, back ignored), or all of the slices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_MultipleReduce.ipf

    r1092 r1100  
    162162        //input filenames must be full path:file;ext, so they can be found on disk 
    163163         
    164         String cmdTemplate = "V_ExecuteProtocol(\"" + gMredProtoStr + "\",\"%s\")" 
     164//      String cmdTemplate = "V_ExecuteProtocol(\"" + gMredProtoStr + "\",\"%s\")" 
    165165        String theItem 
    166166        Variable index=0 
     
    170170                theItem = StringFromList(index,list,",")        //COMMA separated list 
    171171                if(strlen(theItem)!=0) 
    172                         sprintf cmd,cmdTemplate,theItem         //null string items will be skipped 
     172                        //sprintf cmd,cmdTemplate,theItem               //null string items will be skipped 
    173173                        //Print "cmd = ",cmd 
    174                         Execute cmd 
     174                        //Execute cmd 
     175                        V_ExecuteProtocol(gMredProtoStr,theItem) 
    175176                endif 
    176177                index +=1 
     
    265266Function/S V_GetValidMRedPopupList() 
    266267 
    267 //      String semiList = V_GetSAMList() 
    268268 
    269269        String commaList="",semiList="",fname="",purpose="" 
    270270        SVAR numList=root:Packages:NIST:VSANS:Globals:MRED:gFileNumList 
     271         
     272        // if a "*" is entered, return all of the SAMPLE+SCATTERING files 
     273        if(cmpstr(numList,"*") == 0) 
     274                semiList = V_GetSAMList() 
     275                return(semiList) 
     276        endif 
    271277         
    272278        commaList = V_ParseRunNumberList(numList) 
Note: See TracChangeset for help on using the changeset viewer.