Ignore:
Timestamp:
Mar 23, 2018 10:29:07 AM (5 years ago)
Author:
srkline
Message:

added a few corrections to the reduction:

Added sample apertures to the patch panel so that they can be corrected

A flag is now written to the data files if the "flip" has been done, and it will refuse to flip again. This flag can be reset if something goes wrong.

Multiple reduce now allows run numbers to be entered as is for SANS,

Filtering of files for the protocol panel should be better behaved now.

File:
1 edited

Legend:

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

    r1083 r1092  
    69296929end 
    69306930 
     6931 
     6932// this is a NON NICE entered field 
     6933// 
     6934// this is a flag to mark the file as "flipped" so it prevents a 2nd flip 
     6935// if the flip has been done, the field is written with a value of 1 (= true) 
     6936// 
     6937// to "un-mark" the file and allow the flip to be re-done, write -999999 
     6938Function V_writeLeftRightFlipDone(fname,val) 
     6939        String fname 
     6940        Variable val 
     6941         
     6942        String path = "entry:reduction:left_right_flip"  
     6943         
     6944        Make/O/D/N=1 wTmpWrite 
     6945//      Make/O/R/N=1 wTmpWrite 
     6946        String groupName = "/entry/reduction" 
     6947        String varName = "left_right_flip" 
     6948        wTmpWrite[0] = val 
     6949 
     6950        variable err 
     6951        err = V_WriteWaveToHDF(fname, groupName, varName, wTmpWrite) 
     6952        if(err) 
     6953                Print "HDF write err = ",err 
     6954        endif 
     6955        // now be sure to kill the data folder to force a re-read of the data next time this file is read in 
     6956//      err = V_KillNamedDataFolder(fname) 
     6957//      if(err) 
     6958//              Print "DataFolder kill err = ",err 
     6959//      endif 
     6960        return(err) 
     6961end 
    69316962 
    69326963 
Note: See TracChangeset for help on using the changeset viewer.