Changeset 7e6bea81 in sasmodels

Ignore:
Timestamp:
Sep 12, 2016 1:30:18 AM (5 years ago)
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
7b68dc5
Parents:
897ca7f
Message:

sphere: tweak docs and add test cases

File:
1 edited

Unmodified
Added
Removed
• sasmodels/models/sphere.py

 r9a4811a For information about polarised and magnetic scattering, see the :ref:magnetism documentation. documentation. Definition where *scale* is a volume fraction, $V$ is the volume of the scatterer, $r$ is the radius of the sphere, *background* is the background level and $r$ is the radius of the sphere and *background* is the background level. *sld* and *sld_solvent* are the scattering length densities (SLDs) of the scatterer and the solvent respectively. scatterer and the solvent respectively, whose difference is $\Delta\rho$. Note that if your data is in absolute scale, the *scale* should represent radius=120, radius_pd=.2, radius_pd_n=45) tests = [ [{}, 0.2, 0.726362], [{"scale": 1., "background": 0., "sld": 6., "sld_solvent": 1., "radius": 120., "radius_pd": 0.2, "radius_pd_n":45}, 0.2, 0.228843], [{"radius": 120., "radius_pd": 0.2, "radius_pd_n":45}, "ER", 120.], [{"radius": 120., "radius_pd": 0.2, "radius_pd_n":45}, "VR", 1.], ]
Note: See TracChangeset for help on using the changeset viewer.