core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since e481a39 was
0f910a7,
checked in by smk78, 8 years ago
|
Changed typo in catergory name that was generating an erroneous toc
entry
|
-
Property mode set to
100644
|
File size:
993 bytes
|
Rev | Line | |
---|
[275b98e5] | 1 | r""" |
---|
[0f910a7] | 2 | This is a test function! |
---|
[275b98e5] | 3 | |
---|
| 4 | Definition |
---|
| 5 | ---------- |
---|
| 6 | |
---|
[0f910a7] | 7 | Calculates a bessel function. Maybe... |
---|
[275b98e5] | 8 | |
---|
| 9 | References |
---|
| 10 | ---------- |
---|
| 11 | |
---|
[0f910a7] | 12 | None |
---|
[275b98e5] | 13 | """ |
---|
| 14 | |
---|
| 15 | from numpy import inf |
---|
| 16 | |
---|
| 17 | name = "bessel" |
---|
| 18 | title = "Bessel function testing" |
---|
| 19 | description = """\ |
---|
[0f910a7] | 20 | Leveraging current infrastructure to test Bessel function performance on |
---|
[275b98e5] | 21 | """ |
---|
[0f910a7] | 22 | category = "special_functions:bessel" |
---|
[275b98e5] | 23 | |
---|
| 24 | # ["name", "units", default, [lower, upper], "type","description"], |
---|
| 25 | #Bessel |
---|
| 26 | parameters = [ |
---|
| 27 | ["ignored", "", 0.0, [-inf, inf], "", "no parameterless functions"], |
---|
| 28 | ] |
---|
| 29 | |
---|
| 30 | source = ["lib/sas_gamma.c"] |
---|
| 31 | |
---|
| 32 | # No volume normalization despite having a volume parameter |
---|
| 33 | # This should perhaps be volume normalized? |
---|
| 34 | form_volume = """ |
---|
| 35 | """ |
---|
| 36 | |
---|
| 37 | Iq = """ |
---|
| 38 | return sas_gamma(q); |
---|
| 39 | """ |
---|
| 40 | |
---|
| 41 | Iqxy = """ |
---|
| 42 | // never called since no orientation or magnetic parameters. |
---|
| 43 | //return -1.0; |
---|
| 44 | """ |
---|
| 45 | |
---|
| 46 | # VR defaults to 1.0 |
---|
| 47 | |
---|
| 48 | demo = dict(scale=1, background=0, |
---|
| 49 | ) |
---|
| 50 | oldname = "Bessel" |
---|
| 51 | oldpars = dict() |
---|
Note: See
TracBrowser
for help on using the repository browser.