Ignore:
Timestamp:
Jun 2, 2017 11:29:54 AM (5 years ago)
Author:
srkline
Message:

moved dead time correction to before the solid angle correction, so that the dead time would be correcting counts, not counts per solid angle

added a routine to kill all of the waves and folders possible, if the overall DF kill failed. This is to prevent stray folders and waves from being present if different data files are loaded - since different data blocks are present for say, 3He data, data with temperature logging, etc.
This kill routine is used every time, before raw data is loaded, DIV or MASK loaded, or data is converted to WORK.

changed the "Save I(q)" button on the data display panel to save as ITX format, since the data has not been processed, and data can more easily be used for trimming input.

picking protocols in dialogs now excludes/includes appropriate waves

menus are consolidated

Fixed bug in SANS macros where the DRK[] item in the protocol could be null, and force the read of a DRK file, even if it was not desired.

File:
1 edited

Legend:

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

    r1041 r1042  
    999999                        // click code here 
    10001000 
    1001                         V_SimpleSave1DData("root:Packages:NIST:VSANS:","","","")                 
    1002                                  
     1001//                      V_SimpleSave1DData("root:Packages:NIST:VSANS:","","","")         
     1002 
     1003// this is the same as clicking the I(q) button. Ensures that the current file has been averaged,  
     1004// and the data being saved is not "stale" 
     1005 
     1006                        V_PlotData_Panel()              //-9999 requests a read from the popup on the panel 
     1007                        Variable binType = V_GetBinningPopMode() 
     1008                        V_BinningModePopup("",binType,"")               // does default circular binning and updates the graph 
     1009         
     1010                        SVAR type = root:Packages:NIST:VSANS:Globals:gCurDispType               //what folder 
     1011 
     1012                        // look for the binning type 
     1013//                      Variable binType 
     1014//                      ControlInfo/W=V_1D_Data popup0 
     1015//                      binType = (V_flag == 0) ? 1 : V_flag            // if binType not defined, set binType == 1 
     1016 
     1017                        String saveName="" 
     1018                // write out the data set to a file 
     1019                        if(strlen(saveName)==0) 
     1020                                Execute "V_GetNameForSave()" 
     1021                                SVAR newName = root:saveName 
     1022                                saveName = newName 
     1023                        endif 
     1024                         
     1025                        V_Write1DData_ITX("root:Packages:NIST:VSANS:",type,saveName,binType) 
     1026         
     1027                        Print "Saved file: "    +       saveName + ".itx"        
    10031028                        break 
    10041029                case -1: // control being killed 
Note: See TracChangeset for help on using the changeset viewer.