Changeset b0696e1 in sasmodels
- Timestamp:
- Mar 30, 2016 2:27:57 PM (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:
- 364d8f7
- Parents:
- 27fade8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/onion.py
r6a8fdfe rb0696e1 290 290 category = "shape:sphere" 291 291 292 # TODO: n is a volume parameter that is not polydisperse 292 293 293 294 # ["name", "units", default, [lower, upper], "type","description"], 294 295 parameters = [["core_sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", 295 296 "Core scattering length density"], 296 ["core_radius", "Ang", 200., [0, inf], " ",297 ["core_radius", "Ang", 200., [0, inf], "volume", 297 298 "Radius of the core"], 298 299 ["solvent_sld", "1e-6/Ang^2", 6.4, [-inf, inf], "", … … 367 368 368 369 def ER(core_radius, n, thickness): 369 return np.sum(thickness[:n ], axis=0) + core_radius370 return np.sum(thickness[:n[0]], axis=0) + core_radius 370 371 371 372 def VR(core_radius, n, thickness): 372 return 1.0 373 return 1.0, 1.0 373 374 374 375 demo = {
Note: See TracChangeset
for help on using the changeset viewer.