Changeset 1448db7a in sasmodels


Ignore:
Timestamp:
Apr 19, 2016 1:33:47 AM (9 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:
25b82a1
Parents:
1bf66d9
Message:

Spherical sld clean-up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/spherical_sld.py

    r1bf66d9 r1448db7a  
    183183# pylint: enable=bad-whitespace, line-too-long 
    184184source = ["lib/librefl.c",  "lib/sph_j1c.c", "spherical_sld.c"] 
    185  
    186 #def Iq(q, *args, **kw): 
    187 #    return q 
    188  
    189 #def Iqxy(qx, *args, **kw): 
    190 #    return qx 
    191185 
    192186def profile(n_shells, radius_core,  sld_core,  sld_solvent, sld_flat, 
     
    253247    return np.asarray(z), np.asarray(beta)*1e-6 
    254248 
    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 
     250def ER(n_shells, radius_core, thick_inter): 
     251    return np.sum(thick_inter[:n_shells], axis=0) + radius_core 
    257252 
    258253def VR(core_radius, n, thickness): 
Note: See TracChangeset for help on using the changeset viewer.