Changeset 745 for sans/Dev


Ignore:
Timestamp:
Sep 22, 2010 4:35:31 PM (12 years ago)
Author:
ajj
Message:

Adding option to the protocol string to specify a filename for auto-naming.

This allows for batch processing of e.g. sectors at different angles to have different names as long as the user is willing to write a script themselves

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/ProtocolAsPanel.ipf

    r733 r745  
    19171917                PathInfo/S catPathName 
    19181918                item = StringByKey("NAME",prot[5],"=",";")              //Auto or Manual naming 
     1919                String autoname = StringByKey("AUTONAME",prot[5],"=",";")               //autoname -  will get empty string if not present 
    19191920                If((cmpstr(item,"Manual")==0) || (cmpstr(newFileName,"") == 0)) 
    19201921                        //manual name if requested or if no name can be derived from header 
     
    19231924                else 
    19241925                        //auto-generate name and prepend path - won't put up any dialogs since it has all it needs 
    1925                         fullPath = S_Path + newFileName+ "." + exten     
     1926                        //use autoname if present 
     1927                        if (cmpstr(autoname,"") != 0) 
     1928                                fullPath = S_Path + autoname + "." +exten 
     1929                        else 
     1930                                fullPath = S_Path + newFileName+"." + exten 
     1931                        endif    
    19261932                Endif 
    19271933                // 
Note: See TracChangeset for help on using the changeset viewer.