Ignore:
Timestamp:
Feb 6, 2012 12:19:28 PM (11 years ago)
Author:
srkline
Message:

moving the Polarization routines to a temporary "beta" menu location on the macros menu, numbering the panels.

Created a loader for the polarization routines that will load the SANS reduction if needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_Igor_Procedures/NCNR_Package_Loader.ipf

    r828 r835  
    11#pragma rtGlobals=1             // Use modern global access method. 
    2 #pragma IgorVersion=6.1 
     2#pragma IgorVersion=6.2 
    33 
    44// load/unload courtesy of Jan Ilavsky 
     
    3131        // for testing ONLY 
    3232        "-" 
    33         "Load Polarization Reduction",Execute/P "INSERTINCLUDE \"Include_Polarization\"";Execute/P "COMPILEPROCEDURES " 
    34  
    35         "Load Batch Fitting",Execute/P "INSERTINCLUDE \"Auto_Fit\"";Execute/P "COMPILEPROCEDURES ";Execute/P "InitializeAutoFitPanel()" 
    36  
    37         "Load Real Space Modeling",Execute/P "INSERTINCLUDE \"FFT_Cubes_Includes\"";Execute/P "INSERTINCLUDE \"FFT_Fit_Includes\"";Execute/P "COMPILEPROCEDURES ";Execute/P "Init_FFT()" 
     33        "Load Polarization Reduction - Beta",PolarizationLoader() 
     34 
     35//      "Load Batch Fitting",Execute/P "INSERTINCLUDE \"Auto_Fit\"";Execute/P "COMPILEPROCEDURES ";Execute/P "InitializeAutoFitPanel()" 
     36 
     37        "Load Real Space Modeling - Beta",Execute/P "INSERTINCLUDE \"FFT_Cubes_Includes\"";Execute/P "INSERTINCLUDE \"FFT_Fit_Includes\"";Execute/P "COMPILEPROCEDURES ";Execute/P "Init_FFT()" 
    3838        "-" 
    3939 
     
    4343        String itemStr 
    4444                 
    45         if (str2num(stringByKey("IGORVERS",IgorInfo(0))) < 6.1) 
    46                 Abort "Your version of Igor is lower than 6.1, these macros need version 6.1 or higher.... " 
     45        if (str2num(stringByKey("IGORVERS",IgorInfo(0))) < 6.2) 
     46                Abort "Your version of Igor is lower than 6.2, these macros need version 6.2 or higher.... " 
    4747        endif 
    4848         
     
    127127        String itemStr 
    128128         
    129         if (str2num(stringByKey("IGORVERS",IgorInfo(0))) < 6.1) 
    130                 Abort "Your version of Igor is lower than 6.1, these macros need version 6.1 or higher.... " 
     129        if (str2num(stringByKey("IGORVERS",IgorInfo(0))) < 6.2) 
     130                Abort "Your version of Igor is lower than 6.2, these macros need version 6.2 or higher.... " 
    131131        endif 
    132132         
     
    198198        String itemStr 
    199199         
    200         if (str2num(stringByKey("IGORVERS",IgorInfo(0))) < 6.1) 
    201                 Abort "Your version of Igor is lower than 6.1, these macros need version 6.1 or higher.... " 
     200        if (str2num(stringByKey("IGORVERS",IgorInfo(0))) < 6.2) 
     201                Abort "Your version of Igor is lower than 6.2, these macros need version 6.2 or higher.... " 
    202202        endif 
    203203         
     
    283283        String itemStr 
    284284         
    285         if (str2num(stringByKey("IGORVERS",IgorInfo(0))) < 6.1) 
    286                 Abort "Your version of Igor is lower than 6.1, these macros need version 6.1 or higher.... " 
     285        if (str2num(stringByKey("IGORVERS",IgorInfo(0))) < 6.2) 
     286                Abort "Your version of Igor is lower than 6.2, these macros need version 6.2 or higher.... " 
    287287        endif 
    288288         
     
    405405        SetIgorOption poundUnDefine=ILL_D22 
    406406End 
     407 
     408Function PolarizationLoader() 
     409 
     410        // be sure that the SANS reduction is loaded and compiles 
     411        NCNR_SANSReductionLoader("Load NCNR SANS Reduction Macros") 
     412         
     413        // then the polarization 
     414        Execute/P "INSERTINCLUDE \"Include_Polarization\"";Execute/P "COMPILEPROCEDURES " 
     415        BuildMenu "Macros" 
     416 
     417        return(0) 
     418End 
Note: See TracChangeset for help on using the changeset viewer.