Ignore:
Timestamp:
Feb 17, 2009 4:37:09 PM (14 years ago)
Author:
srkline
Message:

Tried to stop the unloading clash of GlobalFit? and SimpleGlobalFit?. The Simple fit depends on GlobalFit?, so it can't be unloaded.

SumSANSModels now automatically finds the number of coefficients, since the coefficients are always in the root: folder. Saves the users a step.

Added more windows to the analysis list in the package loader

Location:
sans/Dev/trunk/NCNR_User_Procedures/Analysis/Packages/GlobalFit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Analysis/Packages/GlobalFit/GlobalFit2_NCNR_v40.ipf

    r475 r476  
    14891489                DoWindow/K NewGF_GlobalFitMaskingPanel 
    14901490        endif 
    1491 //      Execute/P "DELETEINCLUDE  <Global Fit 2>" 
    1492         SVAR fileVerExt=root:Packages:NIST:SANS_ANA_EXTENSION 
    1493         String fname="GlobalFit2_NCNR" 
    1494         Execute/P "DELETEINCLUDE \""+fname+fileVerExt+"\"" 
    1495         Execute/P "COMPILEPROCEDURES " 
    1496         KillDataFolder/Z root:Packages:NewGlobalFit 
     1491         
     1492        //SRK - if SimpleGlobalFit is open, go ahead and kill the windows, just 
     1493        // don't un-include the procedure files ! 
     1494        if(Exists("root:Packages:NewGlobalFit:listW") == 0)             //simple fit waves don't exist 
     1495         
     1496        //      Execute/P "DELETEINCLUDE  <Global Fit 2>" 
     1497                SVAR fileVerExt=root:Packages:NIST:SANS_ANA_EXTENSION 
     1498                String fname="GlobalFit2_NCNR" 
     1499                Execute/P "DELETEINCLUDE \""+fname+fileVerExt+"\"" 
     1500                Execute/P "COMPILEPROCEDURES " 
     1501                KillDataFolder/Z root:Packages:NewGlobalFit 
     1502         
     1503        endif 
    14971504end 
    14981505 
  • sans/Dev/trunk/NCNR_User_Procedures/Analysis/Packages/GlobalFit/SimpleGlobalFit_NCNR_v40.ipf

    r475 r476  
    471471End 
    472472 
    473 static Function UnloadSimpleGlobalFit() 
    474         if (WinType("NewGlobalFitPanel") == 7) 
     473// clean up after itself, don't kill any data folder 
     474Function UnloadSimpleGlobalFit() 
     475        if (WinType("SimpGFPanel") == 7) 
    475476                DoWindow/K SimpGFPanel 
    476477        endif 
     
    483484        Execute/P "DELETEINCLUDE \""+fname+fileVerExt+"\"" 
    484485        Execute/P "COMPILEPROCEDURES " 
    485         KillDataFolder/Z root:Packages:NewGlobalFit 
     486        KillWaves/Z root:Packages:NewGlobalFit:listW 
     487        KillWaves/Z root:Packages:NewGlobalFit:selW 
     488        KillWaves/Z root:Packages:NewGlobalFit:titles 
     489         
     490//      KillDataFolder/Z root:Packages:NewGlobalFit 
     491         
     492         
    486493end 
Note: See TracChangeset for help on using the changeset viewer.