core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since 5d4777d was
5d4777d,
checked in by Paul Kienzle <pkienzle@…>, 10 years ago
|
reorganize, check and update models
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | cylinder.c + cylinder.py is the cylinder model with renamed variables and |
---|
2 | sld scaled by 1e6 so the numbers are nicer. The model name is "cylinder" |
---|
3 | |
---|
4 | cylinder_clone.c + cylinder_clone.py is the cylinder model using the |
---|
5 | same interface as the sasview, including calling the model CylinderModel, |
---|
6 | so that it can be used as a drop-in replacement for the sasview cylinder |
---|
7 | model. |
---|
8 | |
---|
9 | lamellar.py is an example of a single file model with embedded C code. |
---|
10 | |
---|
11 | Note: may want to rename form_volume to calc_volume and Iq/Iqxy to |
---|
12 | calc_Iq/calc_Iqxy. Similarly ER/VR go to calc_ER/calc_VR. |
---|
13 | |
---|
14 | Note: It is possible to translate python code automatically to opencl, using |
---|
15 | something like numba, clyther, shedskin or pypy, so maybe the kernel functions |
---|
16 | could be implemented without any C syntax. |
---|
17 | |
---|
18 | Magnetism hasn't been implemented yet. We may want a separate Imagnetic |
---|
19 | calculator with the extra parameters and calculations. We should |
---|
20 | return all desired spin states together so we can share the work of |
---|
21 | computing the form factors for the different magnetic contrasts. This |
---|
22 | will mean extending the data handler to support multiple cross sections |
---|
23 | in the same data set. |
---|
24 | |
---|
25 | Need to write code to generate the polydispersity loops in python for |
---|
26 | kernels that are only implemented in python. Also, need to implement |
---|
27 | an example kernel directly in python. |
---|
Note: See
TracBrowser
for help on using the repository browser.