source: sasmodels/sasmodels/models/README.rst @ ff7119b

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since ff7119b was ff7119b, checked in by Paul Kienzle <pkienzle@…>, 10 years ago

docu update

  • Property mode set to 100644
File size: 1.9 KB
Line 
1cylinder.c + cylinder.py is the cylinder model with renamed variables and
2sld scaled by 1e6 so the numbers are nicer.  The model name is "cylinder"
3
4cylinder_clone.c + cylinder_clone.py is the cylinder model using the
5same interface as the sasview, including calling the model CylinderModel,
6so that it can be used as a drop-in replacement for the sasview cylinder
7model.
8
9cylindermodel_onefile.py is cylinder.c+cylinder.py merged into one file.
10This doesn't actually run yet since sasmodels.gen has not been updated
11to support it.  It exists as a proposal.  Note that the function declaration
12has been removed since there is enough information in the parameter
13definitions to generate it automatically.  Note also that "source" which
14used to be all the source has been renamed "includes".
15
16One-file models could coexist with the py+c file models by checking for the
17existence of c_blah and creating the appropriate function wrappers.  These
18would be appended after any include files.  You shouldn't mix the two forms
19within a single model since form_volume needs to be defined before
20Iq/Iqxy but after the libraries.
21
22Note: may want to rename form_volume to calc_volume and Iq/Iqxy to
23calc_Iq/calc_Iqxy in both the c+py and the one file forms so that the
24names are more predictable.  Similarly ER/VR go to calc_ER/calc_VR.
25
26Note: It is possible to translate python code automatically to opencl, using
27something like numba, clyther, shedskin or pypy.
28
29Magnetism hasn't been implemented yet.  We may want a separate Imagnetic
30calculator with the extra parameters and calculations.   We should
31return all desired spin states together so we can share the work of
32computing the form factors for the different magnetic contrasts.  This
33will mean extending the data handler to support multiple cross sections
34in the same data set.
35
36Need to write code to generate the polydispersity loops in python for
37kernels that are only implemented in python.
Note: See TracBrowser for help on using the repository browser.