Ignore:
Timestamp:
Jun 10, 2011 2:03:45 PM (12 years ago)
Author:
srkline
Message:

Initial separation of facility-specific initialization from the USANS reduction procedures. This is being done to enable the KIST-USANS instrument to use the NCNR reduction scheme. KIST will duplicate the .bt5 file structure but use a different extension.

For this, files for KIST have been created for USANS-specifc, and for some SANS-specific procedures that are entangled with the XML writing and with the USANS simulator.

Corresponding changes (new U_NCNR_Utils) have been added for NCNR-specific USANS initialization.

More will need to be done to disentangle the U_CALC, but at a later date. See ticket #334.

File:
1 edited

Legend:

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

    r611 r807  
    751751Proc SelectFilesToAdd(file1,file2) 
    752752        String file1,file2 
    753         Prompt file1, "First File", popup, BT5FileList("*.bt5*") 
    754         Prompt file2, "Second File", popup, BT5FileList("*.bt5*") 
     753        Prompt file1, "First File", popup, BT5FileList("") 
     754        Prompt file2, "Second File", popup, BT5FileList("") 
    755755         
    756756//      Print file1,file2 
     
    763763        String filter 
    764764         
     765        SVAR ext = root:Packages:NIST:USANS:Globals:MainPanel:gUExt 
     766        filter = "*"+ext+"*" 
    765767         
    766768        //get all the files, then trim the list 
     
    789791        String file1,file2 
    790792         
     793        SVAR ext = root:Packages:NIST:USANS:Globals:MainPanel:gUExt 
     794 
    791795        //load each file into a textWave 
    792796        Make/O/T/N=200 tw1,tw2 
     
    893897         
    894898        // write out the final file (=tw3) 
    895         filen = file1[0,strlen(file1)-5]+"_SUM.bt5" 
     899        filen = file1[0,strlen(file1)-5]+"_SUM"+ext 
    896900         
    897901        if(dialog) 
Note: See TracChangeset for help on using the changeset viewer.