Changeset dd71228 in sasmodels for sasmodels/models/spherical_sld.py


Ignore:
Timestamp:
Apr 19, 2016 9:12:41 AM (8 years ago)
Author:
wojciech
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:
cebbb5a
Parents:
7c20ba0
Message:

ER fucntion corected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/spherical_sld.py

    raf0e70c rdd71228  
    282282    return np.asarray(z), np.asarray(beta)*1e-6 
    283283 
    284 #TODO: Not quite right I suppose 
    285 def ER(n_shells, radius_core, thick_inter): 
    286     return np.sum(thick_inter[:n_shells], axis=0) + radius_core 
    287  
    288 def VR(core_radius, n, thickness): 
    289     return 1.0, 1.0 
     284def ER(n_shells, radius_core, thick_inter0, thick_inter, thick_flat): 
     285    total_thickness = thick_inter0 
     286    total_thickness += np.sum(thick_inter[:n_shells], axis=0) 
     287    total_thickness += np.sum(thick_flat[:n_shells], axis=0) 
     288    return total_thickness + radius_core 
    290289 
    291290 
Note: See TracChangeset for help on using the changeset viewer.