Changeset 27fade8 in sasmodels


Ignore:
Timestamp:
Mar 30, 2016 12:13:13 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:
b0696e1
Parents:
b812972
Message:

fix calls to ER for core shell ellipsoid and ellipsoid xt functions

Location:
sasmodels/models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/core_shell_ellipsoid.py

    r65bf704 r27fade8  
    117117source = ["lib/sph_j1c.c", "lib/gfn.c", "lib/gauss76.c", "core_shell_ellipsoid.c"] 
    118118 
    119 def ER(equat_shell, polar_shell): 
     119def ER(equat_core, polar_core, equat_shell, polar_shell): 
    120120    """ 
    121121        Returns the effective radius used in the S*P calculation 
     
    123123    import numpy as np 
    124124    from .ellipsoid import ER as ellipsoid_ER 
    125     return ellipsoid_ER(rpolar, equat_shell) 
     125    return ellipsoid_ER(polar_shell, equat_shell) 
    126126 
    127127 
  • sasmodels/models/core_shell_ellipsoid_xt.py

    r65bf704 r27fade8  
    107107        Returns the effective radius used in the S*P calculation 
    108108    """ 
    109     import numpy as np 
    110109    from .ellipsoid import ER as ellipsoid_ER 
    111     return ellipsoid_ER(equat_core*x_core + t_shell*x_polar_shell, equat_shell + t_shell) 
     110    polar_outer = equat_core*x_core + t_shell*x_polar_shell 
     111    equat_outer = equat_core + t_shell 
     112    return ellipsoid_ER(polar_outer, equat_outer) 
    112113 
    113114 
Note: See TracChangeset for help on using the changeset viewer.