Changeset b0696e1 in sasmodels


Ignore:
Timestamp:
Mar 30, 2016 2:27:57 PM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

allow onion model to pass smoke tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/onion.py

    r6a8fdfe rb0696e1  
    290290category = "shape:sphere" 
    291291 
     292# TODO: n is a volume parameter that is not polydisperse 
    292293 
    293294#             ["name", "units", default, [lower, upper], "type","description"], 
    294295parameters = [["core_sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", 
    295296               "Core scattering length density"], 
    296               ["core_radius", "Ang", 200., [0, inf], "", 
     297              ["core_radius", "Ang", 200., [0, inf], "volume", 
    297298               "Radius of the core"], 
    298299              ["solvent_sld", "1e-6/Ang^2", 6.4, [-inf, inf], "", 
     
    367368 
    368369def ER(core_radius, n, thickness): 
    369     return np.sum(thickness[:n], axis=0) + core_radius 
     370    return np.sum(thickness[:n[0]], axis=0) + core_radius 
    370371 
    371372def VR(core_radius, n, thickness): 
    372     return 1.0 
     373    return 1.0, 1.0 
    373374 
    374375demo = { 
Note: See TracChangeset for help on using the changeset viewer.