Ignore:
Timestamp:
Apr 14, 2009 3:31:17 PM (14 years ago)
Author:
srkline
Message:

minor changes and comments

Location:
sans/Dev/trunk/NCNR_User_Procedures/Common
Files:
2 edited

Legend:

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

    r413 r490  
    11#pragma rtGlobals=1             // Use modern global access method. 
     2 
     3 
     4 
     5/// 
     6// *********** 
     7// it may be prefereable to COPY the files to the UP folder, so that the installer doesn't "eat" itself  
     8// and require users to re-download if they do something wrong. the difficulty with CopyFolder is that 
     9// on Windows it does a "mix-in" copy, rather than a delete/overwrite all. So it may be better to just leave 
     10// the installer as is, requiring a fresh copy each time. SRK 10MAR09 
     11// 
     12// 
     13/// 
    214 
    315// Install the NCNR Macros 
  • sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/PlotManager/PlotUtils2D_v40.ipf

    r419 r490  
    2020        LoadWave/G/D/W/A 
    2121        String fileName = S_fileName 
     22        String path = S_Path 
    2223        Variable numCols = V_flag 
    2324 
     
    4647                NewDataFolder/S $("root:"+baseStr) 
    4748        endif 
     49         
     50        //read in the 18 lines of header (18th line starts w/ ASCII... 19th line is blank) 
     51        Make/O/T/N=18 header 
     52        Variable refnum,ii 
     53        string tmpStr="" 
     54        Open/R refNum  as (path+filename) 
     55        ii=0 
     56        do 
     57                tmpStr = "" 
     58                FReadLine refNum, tmpStr 
     59                header[ii] = tmpStr 
     60                ii+=1 
     61        while(ii < 18)           
     62        Close refnum 
     63         
     64        // ? parse to get nice variable names? put these in a structure just for fun? 
     65         
    4866         
    4967        ////overwrite the existing data, if it exists 
Note: See TracChangeset for help on using the changeset viewer.