Changeset 257


Ignore:
Timestamp:
Feb 12, 2008 3:18:09 PM (15 years ago)
Author:
ajj
Message:
  • Updated fixed includes to point to _v40 versions
  • Modified SANSModelPicker functions to find files based on version string in global so that the model picker list always has the same names in it regardless of version
  • Updated template to use new procedures
Location:
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v4.00/Packages/ModelPicker/SANSModelPicker_v40.ipf

    r252 r257  
    11#pragma rtGlobals=1             // Use modern global access method. 
    22#pragma IgorVersion=6.0 
    3 #pragma version=3.00 
     3#pragma version=4.00 
    44 
    55//************************ 
     
    3939// initializes each time to make sure 
    4040Proc ModelPicker_Panel() 
    41  
    42         Variable/G root:SANS_ANA_VERSION=3.00 
    4341         
    4442        DoWindow/F Procedure_List 
     
    437435        String/G root:Packages:NIST:FileList:allFiles="" 
    438436        SVAR allFiles = root:Packages:NIST:FileList:allFiles 
     437 
     438        SVAR fileVerExt = root:Packages:NIST:SANS_ANA_EXTENSION 
     439 
     440        fileStr = RemoveExten(fileStr)+fileVerExt 
    439441         
    440442        PathInfo Igor 
     
    464466        Wave/T includedFileWave=$"root:Packages:NIST:FileList:includedFileWave" 
    465467        Wave selToDel=$"root:Packages:NIST:FileList:selToDelWave" 
     468 
     469        SVAR fileVerExt=root:Packages:NIST:SANS_ANA_EXTENSION 
    466470         
    467471        Variable numIncl=numpnts(includedFileWave) 
     
    470474 
    471475        //Necessary for every analysis experiment 
    472         Execute/P "INSERTINCLUDE \"PlotUtilsMacro\"" 
    473         Execute/P "INSERTINCLUDE \"GaussUtils\"" 
    474         Execute/P "INSERTINCLUDE \"WriteModelData\"" 
     476        Execute/P "INSERTINCLUDE \"PlotUtilsMacro_v40\"" 
     477        Execute/P "INSERTINCLUDE \"GaussUtils_v40\"" 
     478        Execute/P "INSERTINCLUDE \"WriteModelData_v40\"" 
    475479         
    476480        NVAR doCheck=root:Packages:NIST:FileList:checkForFiles 
     
    485489                        if(ok || !doCheck) 
    486490                                fname = RemoveExten(fileWave[ii])        
    487                                 Execute/P "INSERTINCLUDE \""+fname+"\"" 
     491                                Execute/P "INSERTINCLUDE \""+fname+fileVerExt+"\"" 
    488492                                // add to the already included list, and remove from the to-include list (and selWaves also) 
    489493                                InsertPoints numpnts(includedFileWave), 1, includedFileWave,selToDel 
     
    516520        Wave sel=$"root:Packages:NIST:FileList:selWave" 
    517521         
     522        SVAR fileVerExt=root:Packages:NIST:SANS_ANA_EXTENSION 
    518523         
    519524        Variable num=numpnts(selToDel),ii 
     
    524529                if(selToDel[ii] == 1) 
    525530                        fname = RemoveExten(includedFileWave[ii]) 
    526                         Execute/P "DELETEINCLUDE \""+fname+"\"" 
     531                        Execute/P "DELETEINCLUDE \""+fname+fileVerExt+"\"" 
    527532                        //add to the to-include list 
    528533                        InsertPoints numpnts(fileWave), 1, fileWave,sel 
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v4.00/Packages/Wrapper_v40.ipf

    r252 r257  
    1616        NewDataFolder/O root:Packages 
    1717        NewDataFolder/O root:Packages:NIST 
     18 
     19        //Create useful globals 
     20        Variable/G root:Packages:NIST:SANS_ANA_VERSION=4.00 
     21        String/G root:Packages:NIST:SANS_ANA_EXTENSION="_v40" 
    1822         
    1923        DoWindow/F WrapperPanel 
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v4.00/PlotManager_v40.ipf

    r252 r257  
    11#pragma rtGlobals=1             // Use modern global access method. 
    2 #pragma version=3.00 
     2#pragma version=4.00 
    33#pragma IgorVersion=6.0 
    44 
Note: See TracChangeset for help on using the changeset viewer.