Changeset 2d81cfe in sasmodels for sasmodels/models/_spherepy.py
- Timestamp:
- Nov 29, 2017 1:13:23 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 237b800f
- Parents:
- a839b22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/_spherepy.py
rec45c4f r2d81cfe 1 1 r""" 2 For information about polarised and magnetic scattering, see 2 For information about polarised and magnetic scattering, see 3 3 the :doc:`magnetic help <../sasgui/perspectives/fitting/mag_help>` documentation. 4 4 … … 104 104 dlow = d[low] 105 105 dlow2 = dlow ** 2 106 g[low] = sqrt(1 - dlow2 / 4.) * (1 + dlow2 / 8.) + dlow2 / 2.*(1 - dlow2 / 16.) * log(dlow / (2. + sqrt(4. - dlow2))) 106 g[low] = (sqrt(1 - dlow2/4.) * (1 + dlow2/8.) 107 + dlow2/2.*(1 - dlow2/16.) * log(dlow / (2. + sqrt(4. - dlow2)))) 107 108 return g 108 109 sesans.vectorized = True # sesans accepts an array of z values
Note: See TracChangeset
for help on using the changeset viewer.