core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since c2c51a2 was
c2c51a2,
checked in by Paul Kienzle <pkienzle@…>, 8 years ago
|
allow sasmodels to look in sasmodels-data for builtin model c source
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | """ |
---|
2 | sasmodels |
---|
3 | ========= |
---|
4 | |
---|
5 | **sasmodels** is a package containing models for small angle neutron and xray |
---|
6 | scattering. Models supported are the one dimensional circular average and |
---|
7 | two dimensional oriented patterns. As well as the form factor calculations |
---|
8 | for the individual shapes **sasmodels** also provides automatic shape |
---|
9 | polydispersity, angular dispersion and resolution convolution. SESANS |
---|
10 | patterns can be computed for any model. |
---|
11 | |
---|
12 | Models can be written in python or in C. C models can run on the GPU if |
---|
13 | OpenCL drivers are available. See :mod:`generate` for details on |
---|
14 | defining new models. |
---|
15 | """ |
---|
16 | __version__ = "0.9" |
---|
17 | |
---|
18 | def data_files(): |
---|
19 | """ |
---|
20 | Return the data files to be installed with the package. |
---|
21 | |
---|
22 | The format is a list of (directory, [files...]) pairs which can be |
---|
23 | used directly in setup(...,data_files=...) for setup.py. |
---|
24 | """ |
---|
25 | from os.path import join as joinpath |
---|
26 | from .generate import SIBLING_DIR, DATA_PATH |
---|
27 | data_files = {} |
---|
28 | def add_patterns(path, patterns): |
---|
29 | data_files[joinpath(SIBLING_DIR, *path)] \ |
---|
30 | = [joinpath(DATA_PATH, *(path+[p])) for p in patterns] |
---|
31 | add_patterns([], ['*.c', '*.cl', 'convert.json']) |
---|
32 | add_patterns(['models'], ['*.c']) |
---|
33 | add_patterns(['models', 'lib'], ['*.c']) |
---|
34 | |
---|
35 | return data_files |
---|
36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.