Changeset 1096


Ignore:
Timestamp:
Apr 18, 2018 12:36:25 PM (5 years ago)
Author:
srkline
Message:

bug fixes in transmission calculation to use the panel as defined when the box coordinates are set, and to treat empty cell files (intent) as scattering files for the purpose of calculating transmission.

File:
1 edited

Legend:

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

    r1094 r1096  
    275275        NVAR gTrnGrpID = root:Packages:NIST:VSANS:Globals:Transmission:gTrnGrpID 
    276276 
    277         return(V_getFileIntentPurposeIDList("SAMPLE","SCATTERING",gTrnGrpID,0)) 
     277        String retStr = V_getFileIntentPurposeIDList("SAMPLE","SCATTERING",gTrnGrpID,0) 
     278 
     279// and be sure to add in the empty cell, since it's not a "sample" 
     280        retStr += V_getFileIntentPurposeIDList("EMPTY CELL","SCATTERING",gTrnGrpID,0) 
     281         
     282        return(retStr) 
    278283End 
    279284 
     
    451456                // x- need to get the panel string for the sum. 
    452457                // x- the detector string is currently hard-wired 
     458                detStr = V_getReduction_BoxPanel(emptyFileName) 
     459                 
    453460                SVAR gEmptyPanel = root:Packages:NIST:VSANS:Globals:Transmission:gEmptyPanel 
    454                 detStr = gEmptyPanel 
     461                gEmptyPanel = detStr 
    455462 
    456463                 
Note: See TracChangeset for help on using the changeset viewer.