Ignore:
Timestamp:
Nov 7, 2007 5:11:32 PM (15 years ago)
Author:
srkline
Message:

bits and tweaks to get 2D fitting to work. Most significant changes are the call to the 2D AAO function in the correct XY order and the FuncFit? /X={} flag which needs to be {y,x} rather than the expected {x,y}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/Models_2D/Cylinder_2D.ipf

    r185 r196  
    6666        coef_Cyl2D[8] = 0.0 
    6767        coef_Cyl2D[9] = 0.0 
    68         //NOT THE SAME ORDER AS MATHIEU'S CODE 
     68        //NOT THE SAME ORDER AS MATHIEU'S CODE - POLYDISPERSITY OF RADIUS IS IN A DIFFERENT LOCATION FROM 
     69        // MATHIEU'S CylinderModel 
    6970        parameters_Cyl2D[0] = "Scale" 
    7071        parameters_Cyl2D[1] = "Radius" 
     
    121122//       
    122123//#if exists("Cylinder_2D_Dist") 
    123 //      zw = Cylinder_2D_Dist(cw,yw,xw) 
     124//      zw = Cylinder_2D_Dist(cw,xw,yw) 
    124125//#else 
    125126//      Abort "You do not have the SANS Analysis XOP installed" 
     
    134135        Variable p1,p2 
    135136         
    136         zw[p1,p2]= Cylinder_2D_Dist(cw,yw,xw) 
     137#if exists("Cylinder_2D_Dist")                  //to hide the function if XOP not installed 
     138        zw[p1,p2]= Cylinder_2D_Dist(cw,xw,yw) 
     139#endif 
    137140 
    138141//      return stopMSTimer(-2)          // time when we finished 
Note: See TracChangeset for help on using the changeset viewer.