Ignore:
Timestamp:
May 31, 2018 10:12:09 AM (4 years ago)
Author:
srkline
Message:

updated mask drawing procedures to allow draw/erase of different shapes, rather than limited to single tubes.

added USANS_SlitSmearing.ipf back to the includes, removing the VSANS version which was duplicated.

File:
1 edited

Legend:

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

    r1102 r1104  
    397397 
    398398 
    399  
     399// TODO -- this may not correctly mimic the enumerated type of the file 
     400//  but I need to fudge this somehow 
     401// 
     402// returns null string if the type cannot be deduced, calling procedure is responsible 
     403//  for properly handling this error condition 
     404// 
     405Function/S V_DeduceMonochromatorType(fname) 
     406        String fname 
     407         
     408        String typeStr="" 
     409 
     410        if(cmpstr(V_getVelSelStatus(fname),"IN") == 0) 
     411                typeStr = "velocity_selector" 
     412        endif 
     413         
     414        if(cmpstr(V_getWhiteBeamStatus(fname),"IN") == 0) 
     415                typeStr = "white_beam" 
     416        endif 
     417         
     418        if(cmpstr(V_getCrystalStatus(fname),"IN") == 0) 
     419                typeStr = "crystal" 
     420        endif    
     421         
     422        return(typeStr) 
     423End 
     424 
     425 
Note: See TracChangeset for help on using the changeset viewer.