Changeset 818


Ignore:
Timestamp:
Jul 15, 2011 11:45:59 AM (11 years ago)
Author:
srkline
Message:

fixed Polarization Protocol to ignore data folders that are not used in the propocol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/Polarization/Pol_PolarizationCorrection.ipf

    r817 r818  
    12721272        Execute str 
    12731273         
    1274 // don't load the EMP data, just re-tag it       
    1275         dataType="EMP" 
    1276         sprintf str,"DisplayTaggedData(\"%s\",\"%s\")",dataType,pType+"_pc" 
    1277         Execute str 
     1274 
    12781275 
    12791276// don't load the BGD data, just re-tag it       
    1280         dataType="BGD" 
    1281         sprintf str,"DisplayTaggedData(\"%s\",\"%s\")",dataType,pType+"_pc" 
    1282         Execute str 
    1283          
     1277        if(cmpstr(prot[0],"none") != 0)         //if BGD is used, protStr[0] = "" 
     1278                dataType="BGD" 
     1279                sprintf str,"DisplayTaggedData(\"%s\",\"%s\")",dataType,pType+"_pc" 
     1280                Execute str 
     1281        endif 
     1282 
     1283// don't load the EMP data, just re-tag it 
     1284// 
     1285        if(cmpstr(prot[1],"none") != 0)         //if EMP is used, protStr[1] = "" 
     1286                dataType="EMP" 
     1287                sprintf str,"DisplayTaggedData(\"%s\",\"%s\")",dataType,pType+"_pc" 
     1288                Execute str 
     1289        endif 
     1290                 
    12841291// 
    12851292// from here down, the steps are identical 
Note: See TracChangeset for help on using the changeset viewer.