Ignore:
Timestamp:
Nov 25, 2014 3:10:21 PM (8 years ago)
Author:
srkline
Message:

adding new procedures for testing -- that will enable:

(1) automation of SANS data reduction, at least in some of the more standard cases. The more consistently the data files are named, the better this works.
(2) Much simpler scripting of experiment simulation. now a simulated experiment can be set up is the same way that a real experiemtn can -- by setting up a list of "runs"

Help files are to follow for all of these. Prelimiary help for the automation has been added to the SANS Reduction Help file. Videos to follow. Loaders for these two items have been added to the Macros menu so that all of the dependencies are satisfied.

More testing is still necessary to make sure that nothing has been broken, and that sufficient error catching has been done so that meaningful testing can be done.

File:
1 edited

Legend:

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

    r912 r950  
    4949        "Event Mode Processing",EventModeLoader() 
    5050        "Load Batch Fitting - Beta",BatchFitLoader() 
     51        "Load Simulation Run Builder",SimSANSRunListLoader() 
     52        "Automated SANS Reduction - Beta",AutomateSANSLoader() 
    5153 
    5254//      "-" 
     
    710712        return(0) 
    711713End 
     714 
     715// loads the Reduction package, then the Auto_Reduction panel 
     716Function AutomateSANSLoader() 
     717 
     718        // be sure that the SANS reduction is loaded and compiles 
     719        NCNR_SANSReductionLoader("Load NCNR SANS Reduction Macros") 
     720         
     721        // then bring up the Auto_reduction panel 
     722        Execute/P "Auto_Reduce_Panel()" 
     723         
     724        return(0) 
     725End 
     726 
     727 
     728 
     729// for SANS simulation scripting, need to load the reduction, analysis,  
     730// then the two scripting procedures 
     731// 
     732// -- this is to avoid the entanglement betwen analysis models and SASCALC (in reduction) 
     733// 
     734Function SimSANSRunListLoader() 
     735 
     736        // be sure that the SANS reduction is loaded and compiles 
     737        NCNR_SANSReductionLoader("Load NCNR SANS Reduction Macros") 
     738         
     739        // be sure that the SANS Analysis is loaded and compiles 
     740        NCNR_AnalysisLoader("Load NCNR Analysis Macros") 
     741         
     742        // then the Scripting files 
     743        Execute/P "INSERTINCLUDE \"MC_SimulationScripting\"" 
     744        Execute/P "INSERTINCLUDE \"MC_Script_Panels\"" 
     745        Execute/P "COMPILEPROCEDURES " 
     746//      Execute/P "InitializeAutoFitPanel()" 
     747         
     748        BuildMenu "Macros" 
     749        return(0) 
     750End 
Note: See TracChangeset for help on using the changeset viewer.