Changeset 5d4777d in sasmodels for sasmodels/models/README.rst


Ignore:
Timestamp:
Sep 2, 2014 1:24:38 AM (10 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
f4cf580
Parents:
ff7119b
Message:

reorganize, check and update models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/README.rst

    rff7119b r5d4777d  
    77model. 
    88 
    9 cylindermodel_onefile.py is cylinder.c+cylinder.py merged into one file. 
    10 This doesn't actually run yet since sasmodels.gen has not been updated 
    11 to support it.  It exists as a proposal.  Note that the function declaration 
    12 has been removed since there is enough information in the parameter 
    13 definitions to generate it automatically.  Note also that "source" which 
    14 used to be all the source has been renamed "includes". 
    15  
    16 One-file models could coexist with the py+c file models by checking for the 
    17 existence of c_blah and creating the appropriate function wrappers.  These 
    18 would be appended after any include files.  You shouldn't mix the two forms 
    19 within a single model since form_volume needs to be defined before 
    20 Iq/Iqxy but after the libraries. 
     9lamellar.py is an example of a single file model with embedded C code. 
    2110 
    2211Note: may want to rename form_volume to calc_volume and Iq/Iqxy to 
    23 calc_Iq/calc_Iqxy in both the c+py and the one file forms so that the 
    24 names are more predictable.  Similarly ER/VR go to calc_ER/calc_VR. 
     12calc_Iq/calc_Iqxy. Similarly ER/VR go to calc_ER/calc_VR. 
    2513 
    2614Note: It is possible to translate python code automatically to opencl, using 
    27 something like numba, clyther, shedskin or pypy. 
     15something like numba, clyther, shedskin or pypy, so maybe the kernel functions 
     16could be implemented without any C syntax. 
    2817 
    2918Magnetism hasn't been implemented yet.  We may want a separate Imagnetic 
     
    3524 
    3625Need to write code to generate the polydispersity loops in python for 
    37 kernels that are only implemented in python. 
     26kernels that are only implemented in python.  Also, need to implement 
     27an example kernel directly in python. 
Note: See TracChangeset for help on using the changeset viewer.