Changeset 748


Ignore:
Timestamp:
Sep 29, 2010 12:48:30 PM (12 years ago)
Author:
srkline
Message:

fixed a bug in the FitWrapper?, creating a null wave reference for the constraints so that the /NWOK flag works correctly.

File:
1 edited

Legend:

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

    r747 r748  
    804804        // do not construct constraints for any of the coefficients that are being held 
    805805        // -- this will generate an "unknown error" from the curve fitting 
    806         // -- if constraints are not used, the constr wave is killed (null), but that's OK 
     806        // -- if constraints are not used, the constr wave is killed. This apparently 
     807        // confuses the /NWOK flag, since there is not even a null reference present. So generate one. 
    807808        if(useConstr) 
    808809                Make/O/T/N=0 constr 
     
    825826        else 
    826827                KillWaves/Z constr 
     828                Wave/T/Z constr = constr                //this is intentionally a null reference 
    827829        endif 
    828830 
Note: See TracChangeset for help on using the changeset viewer.