Ignore:
Timestamp:
Apr 6, 2010 5:33:41 PM (13 years ago)
Author:
srkline
Message:

USANS dialogs now prompt with "x" added to the suffix when saving.

These files are also filtered out at the same time as normal .cor and .dsm file extensions

Location:
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/Main_USANS.ipf

    r665 r667  
    123123        Variable/G      root:Packages:NIST:USANS:Globals:MainPanel:gDQv = 0.117         //divergence, in terms of Q (1/A)  (NOV 2004) 
    124124 
     125        String/G root:Packages:NIST:gXMLLoader_Title 
     126 
    125127        //initializes preferences. this includes XML y/n, and SANS Reduction items.  
    126128        // if they already exist, they won't be overwritten 
     129         
    127130        Execute "init_pref()"    
    128131         
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/USANSCatNotebook.ipf

    r570 r667  
    7777         
    7878        // remove .cor, .dsm reduced data files 
    79         tmp = ListMatch(list,"*.cor",";")                
     79        // should also catch .corx, .dsmx if they are generated 
     80        tmp = ListMatch(list,"*.cor*",";")               
    8081        list = RemoveFromList(tmp, list  ,";") 
    81         tmp = ListMatch(list,"*.dsm",";")                
     82        tmp = ListMatch(list,"*.dsm*",";")               
    8283        list = RemoveFromList(tmp, list  ,";") 
    8384        tmp = ListMatch(list,"*.pxp",";")                
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/WriteUSANSData.ipf

    r624 r667  
    245245        if(dialog) 
    246246                PathInfo/S catPathName 
    247                 fullPath = DoSaveFileDialog("Save data as") 
     247                fullPath = DoSaveFileDialog("Save data as",fname="",suffix="."+type+"x") 
    248248                If(cmpstr(fullPath,"")==0) 
    249249                        //user cancel, don't write out a file 
     
    254254        Endif 
    255255         
    256         SVAR samFiles = $("root:Packages:NIST:"+type+":fileList") 
    257256        //actually open the file here 
    258257        //Open refNum as fullpath 
     
    388387         
    389388        if(dialog) 
    390                 Open/D refnum as fullpath+".dsm"                //won't actually open the file 
     389                Open/D refnum as fullpath+".dsmx"               //won't actually open the file 
    391390                If(cmpstr(S_filename,"")==0) 
    392391                        //user cancel, don't write out a file 
Note: See TracChangeset for help on using the changeset viewer.