Changeset 65bf704 in sasmodels


Ignore:
Timestamp:
Mar 20, 2016 10:43:12 AM (9 years ago)
Author:
richardh
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:
db74c47
Parents:
4416868
Message:

added ER to core_shell_ellipsoid, core_shell_ellipsoid_xt and fixed bug in flexible_cylinder_elliptical doc

Location:
sasmodels/models
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/core_shell_ellipsoid.py

    r29172aa r65bf704  
    117117source = ["lib/sph_j1c.c", "lib/gfn.c", "lib/gauss76.c", "core_shell_ellipsoid.c"] 
    118118 
     119def ER(equat_shell, polar_shell): 
     120    """ 
     121        Returns the effective radius used in the S*P calculation 
     122    """ 
     123    import numpy as np 
     124    from .ellipsoid import ER as ellipsoid_ER 
     125    return ellipsoid_ER(rpolar, equat_shell) 
     126 
     127 
    119128demo = dict(scale=1, background=0.001, 
    120129            equat_core=200.0, 
  • sasmodels/models/core_shell_ellipsoid_xt.py

    r3556ad7 r65bf704  
    103103          "core_shell_ellipsoid_xt.c"] 
    104104 
     105def ER(equat_core, x_core, t_shell, x_polar_shell): 
     106    """ 
     107        Returns the effective radius used in the S*P calculation 
     108    """ 
     109    import numpy as np 
     110    from .ellipsoid import ER as ellipsoid_ER 
     111    return ellipsoid_ER(equat_core*x_core + t_shell*x_polar_shell, equat_shell + t_shell) 
     112 
     113 
    105114demo = dict(scale=0.05, background=0.001, 
    106115            equat_core=20.0, 
  • sasmodels/models/flexible_cylinder_elliptical.py

    rb66d38e r65bf704  
    8585from numpy import inf 
    8686 
    87 name = "flexible_cylinder_ex" 
     87name = "flexible_cylinder_elliptical" 
    8888title = "Flexible cylinder wth an elliptical cross section and a uniform " \ 
    8989        "scattering length density." 
Note: See TracChangeset for help on using the changeset viewer.