Changeset 5d4777d in sasmodels for sasmodels/models/README.rst
- Timestamp:
- Sep 2, 2014 1:24:38 AM (10 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/README.rst
rff7119b r5d4777d 7 7 model. 8 8 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. 9 lamellar.py is an example of a single file model with embedded C code. 21 10 22 11 Note: 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. 12 calc_Iq/calc_Iqxy. Similarly ER/VR go to calc_ER/calc_VR. 25 13 26 14 Note: It is possible to translate python code automatically to opencl, using 27 something like numba, clyther, shedskin or pypy. 15 something like numba, clyther, shedskin or pypy, so maybe the kernel functions 16 could be implemented without any C syntax. 28 17 29 18 Magnetism hasn't been implemented yet. We may want a separate Imagnetic … … 35 24 36 25 Need to write code to generate the polydispersity loops in python for 37 kernels that are only implemented in python. 26 kernels that are only implemented in python. Also, need to implement 27 an example kernel directly in python.
Note: See TracChangeset
for help on using the changeset viewer.