Changeset 1448db7a in sasmodels
- Timestamp:
- Apr 19, 2016 1:33:47 AM (9 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:
- 25b82a1
- Parents:
- 1bf66d9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/spherical_sld.py
r1bf66d9 r1448db7a 183 183 # pylint: enable=bad-whitespace, line-too-long 184 184 source = ["lib/librefl.c", "lib/sph_j1c.c", "spherical_sld.c"] 185 186 #def Iq(q, *args, **kw):187 # return q188 189 #def Iqxy(qx, *args, **kw):190 # return qx191 185 192 186 def profile(n_shells, radius_core, sld_core, sld_solvent, sld_flat, … … 253 247 return np.asarray(z), np.asarray(beta)*1e-6 254 248 255 def ER(core_radius, n, thickness): 256 return np.sum(thickness[:n[0]], axis=0) + core_radius 249 #TODO: Not quite right I suppose 250 def ER(n_shells, radius_core, thick_inter): 251 return np.sum(thick_inter[:n_shells], axis=0) + radius_core 257 252 258 253 def VR(core_radius, n, thickness):
Note: See TracChangeset
for help on using the changeset viewer.