Ignore:
Timestamp:
Sep 14, 2010 10:22:42 AM (13 years ago)
Author:
srkline
Message:

Fixed bug in maunUSANS panel where clicking in white space in the file list threw up an open file dialog.

ticket #292: 1D arithmetic panel now properly writes out USANS data, switching to fill in the USANS fields if the USANS_dQv variable is found. Otherwise it is treated as SANS data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/DataSetHandling.ipf

    r732 r734  
    14421442        //If we are here, the folder (now) exists and the user has agreed to overwrite 
    14431443        //either in the function call or from the alert. 
     1444         
     1445        // here, GetIndexedObjectName copies all of the waves 
     1446        index = 0 
    14441447        do 
    14451448                objName = GetIndexedObjName(basestr,1,index) 
     
    14511454                index+=1 
    14521455        while(1) 
     1456 
     1457// -- for USANS data, we need the slit height. copy all of the "USANS_*" variables 
     1458// may need to augment this for other situations 
     1459        index = 0 
     1460        do 
     1461                objName = GetIndexedObjName(basestr,2,index) 
     1462                if (strlen(objName) == 0) 
     1463                        break 
     1464                endif 
     1465                if(stringmatch(objName,"USANS*") == 1) 
     1466                        objname = ":"+basestr+":"+objname 
     1467                        NVAR tmp = $objName 
     1468                        Variable/G $(ReplaceString(basestr,objName,newName))= tmp 
     1469                endif 
     1470                index+=1 
     1471        while(1) 
     1472         
    14531473 
    14541474        SetDataFolder root: 
Note: See TracChangeset for help on using the changeset viewer.