Changeset 5a0b3d7 in sasmodels


Ignore:
Timestamp:
Mar 3, 2017 2:10:08 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
1c6286d
Parents:
19f996b
Message:

core multi-shell: use consistent float→int conversion in ER, VR, form_volume and Iq

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/core_multi_shell.py

    rc3ccaec r5a0b3d7  
    134134def ER(radius, n, thickness): 
    135135    """Effective radius""" 
    136     n = int(n[0])  # n cannot be polydisperse 
     136    n = int(n[0]+0.5)  # n is a control parameter and is not polydisperse 
    137137    return np.sum(thickness[:n], axis=0) + radius 
    138138 
Note: See TracChangeset for help on using the changeset viewer.