Ignore:
Timestamp:
Apr 29, 2009 2:31:07 PM (14 years ago)
Author:
srkline
Message:

Added a procedure file that does the necessary wrapping for GenCurveFit?, since it's not a perfect drop-in replacement for FuncFit?. Required modification of the FitWrapper? to switch to GenCurveFit? as needed.
Switch between regular L-M and GenOp? using a menu item.a (sets a gobal)
Still ridiculously slow to use.
Can't yet be used with global fitting. Would be a real pain to implement. Can't imagine how slow that would be to use...

Bug fixes in PatchFiles? (default button for filter type) and Correct (use tolerance of +/- 0.01 pixel for determining of what is a "mismatch" of the beam centers. Problem cropped up with ICE, but should be fixed anyways)

File:
1 edited

Legend:

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

    r477 r495  
    113113        ListBox list0 widths={30,50,80,80} 
    114114         
    115         Button button_0,pos={344,13},size={100,20},title="Do Fit" 
     115        Button button_0,pos={344,13},size={100,20},title="Do The Fit" 
    116116        Button button_0 proc=SGF_DoFitButtonProc 
    117117        Button button_1,pos={369,173},size={50,20},proc=SaveCheckStateButtonProc,title="Save" 
    118118        Button button_2,pos={429,173},size={70,20},proc=RestoreCheckStateButtonProc,title="Restore" 
     119        Button button_3,pos={500,13},size={100,20},proc=SGFitHelpButtonProc,title="Help" 
    119120         
    120121        Edit/W=(14,174,348,495)/HOST=#  
     
    124125         
    125126EndMacro 
     127 
     128//open the Help file for the Simple Global Fit 
     129Function SGFitHelpButtonProc(ba) : ButtonControl 
     130        STRUCT WMButtonAction &ba 
     131 
     132        switch( ba.eventCode ) 
     133                case 2: // mouse up 
     134                        // click code here 
     135                        DisplayHelpTopic/Z/K=1 "Simple Global Fit" 
     136                        if(V_flag !=0) 
     137                                DoAlert 0,"The Simple Global Fit Help file could not be found" 
     138                        endif 
     139                        break 
     140        endswitch 
     141 
     142        return 0 
     143End 
     144 
    126145 
    127146// save the state of the checkboxes 
Note: See TracChangeset for help on using the changeset viewer.