Changes in sasmodels/models/spherical_sld.py [5601947:ee60aa7] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/spherical_sld.py
r5601947 ree60aa7 22 22 23 23 0: erf($\nu z$) 24 24 25 25 1: Rpow($z^\nu$) 26 26 27 27 2: Lpow($z^\nu$) 28 28 29 29 3: Rexp($-\nu z$) 30 30 31 31 4: Lexp($-\nu z$) 32 32 … … 217 217 ["interface[n_shells]", "Ang", 50.0, [0, inf], "volume", "thickness of the interface"], 218 218 ["shape[n_shells]", "", 0, [SHAPES], "", "interface shape"], 219 ["nu[n_shells]", "", 2.5, [ 0, inf], "", "interface shape exponent"],219 ["nu[n_shells]", "", 2.5, [1, inf], "", "interface shape exponent"], 220 220 ["n_steps", "", 35, [0, inf], "", "number of steps in each interface (must be an odd integer)"], 221 221 ] … … 223 223 source = ["lib/polevl.c", "lib/sas_erf.c", "lib/sas_3j1x_x.c", "spherical_sld.c"] 224 224 single = False # TODO: fix low q behaviour 225 have_Fq = True 226 effective_radius_type = ["outer radius"] 225 227 226 228 profile_axes = ['Radius (A)', 'SLD (1e-6/A^2)'] … … 268 270 269 271 270 def ER(n_shells, thickness, interface):271 """Effective radius"""272 n_shells = int(n_shells + 0.5)273 total = (np.sum(thickness[:n_shells], axis=1)274 + np.sum(interface[:n_shells], axis=1))275 return total276 277 278 272 demo = { 279 273 "n_shells": 5,
Note: See TracChangeset
for help on using the changeset viewer.