Changes in / [1fdb555:0d6e865] in sasmodels
- Location:
- sasmodels
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_shell_bicelle.py
r0d6e865 r0d6e865 40 40 .. math:: 41 41 42 I(Q,\alpha) = \frac{\text{scale}}{V _t} \cdot42 I(Q,\alpha) = \frac{\text{scale}}{V} \cdot 43 43 F(Q,\alpha)^2 + \text{background} 44 44 -
sasmodels/models/multilayer_vesicle.py
r041bc75 r19e7ca7 15 15 16 16 See the :ref:`core-shell-sphere` model for more documentation. 17 18 The 1D scattering intensity is calculated in the following way (Guinier, 1955)19 20 .. math::21 22 P(q) = \frac{\text{scale.volfraction}}{V_t} F^2(q) + \text{background}23 24 where25 26 .. math::27 28 F(q) = (\rho_{shell}-\rho_{solv}) \sum_{i=1}^{n\_pairs} \left[29 3V(R_i)\frac{\sin(qR_i)-qR_i\cos(qR_i)}{(qR_i)^3} \\30 - 3V(R_i+t_s)\frac{\sin(q(R_i+t_s))-q(R_i+t_s)\cos(q(R_i+t_s))}{(q(R_i+t_s))^3}31 \right]32 33 34 where $R_i = r_c + (i-1)(t_s + t_w)$35 36 where $V_t$ is the volume of the whole particle, $V(R)$ is the volume of a sphere37 of radius $R$, $r_c$ is the radius of the core, $\rho_{shell}$ is the scattering length38 density of a shell, $\rho_{solv}$ is the scattering length density of the solvent.39 40 17 41 18 The 2D scattering intensity is the same as 1D, regardless of the orientation -
sasmodels/sasview_model.py
r64f0a1c re4bf271 125 125 if not hasattr(model, 'filename'): 126 126 model.filename = kernel_module.__file__ 127 # For old models, treat .pyc and .py files interchangeably.128 # This is needed because of the Sum|Multi(p1,p2) types of models129 # and the convoluted way in which they are created.130 if model.filename.endswith(".py"):131 logging.info("Loading %s as .pyc", model.filename)132 model.filename = model.filename+'c'133 127 if not hasattr(model, 'id'): 134 128 model.id = splitext(basename(model.filename))[0]
Note: See TracChangeset
for help on using the changeset viewer.