Changes between Version 3 and Version 4 of ModelConvInst


Ignore:
Timestamp:
Nov 1, 2015 3:48:58 PM (8 years ago)
Author:
ajj
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • ModelConvInst

    v3 v4  
    66- As a python wrapper with separate C code : Example - barbell.py 
    77 
    8 The documentation for the sasmodels package can be found at http://www.sasview.org/sasmodels/  
     8The documentation for the sasmodels package can be found at http://www.sasview.org/sasmodels/ (not very pretty at the moment) 
     9 
     10Before following the conversion instructions below, it is worth reading the documentation at http://www.sasview.org/sasmodels/api/generate.html#module-sasmodels.generate which describes the structure of a model. 
    911 
    1012'''CREATE NEW MODEL FILES'''. 
     
    5254'''TEST YOUR NEWLY CONVERTED MODEL''' 
    5355 
    54 Test your new model by runing compare.py to verify that the converted model is giving the same results as it did in SasView prior to conversion 
     56Test your new model by runing compare.py to verify that the converted model is giving the same results as it did in SasView prior to conversion. In order to do this, you need either a version of sasview installed in your python path, or a built sasview in a checked out directory at the same level as the checked out sasmodels repository. 
     57 
     58If the latter, you need to add the sasview build directory to your PYTHONPATH or use compare.sh which will do so for you. 
     59 
     60The first thing to test is that you are getting the same answer as SasView for the 1D version of the model. This is done with: 
     61 
     62''' 
     63./compare.sh -1d modelname  
     64''' 
     65 
     66This will result in some comparison metrics between the openCL implementation (if installed - should revert to using ctypes if no OpenCL is installed) and a plot of the two calculations and a comparison plot. 
     67 
     68If the model has 2D orientational calculation, then you should additionally test with: 
     69 
     70''' 
     71./compare.sh -2d modelname 
     72''' 
     73 
     74Brief help for the comparison script can be obtained by just running '''./compare.sh''' 
     75 
    5576 
    5677'''FINISHING'''