Ignore:
Timestamp:
Sep 4, 2018 11:38:51 AM (18 months ago)
Author:
butler
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
eb3eb38
Parents:
992299c
Message:

remove VR from cs_shpere and cs_cylinder

Tested that unit tests pass and then P*Q has not been affected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/core_shell_cylinder.py

    r2d81cfe rda1c8d1  
    130130    Returns the effective radius used in the S*P calculation 
    131131    """ 
     132    print("radius") 
    132133    radius = radius + thickness 
    133134    length = length + 2 * thickness 
    134135    ddd = 0.75 * radius * (2 * radius * length + (length + radius) * (length + pi * radius)) 
    135136    return 0.5 * (ddd) ** (1. / 3.) 
    136  
    137 def VR(radius, thickness, length): 
    138     """ 
    139     Returns volume ratio 
    140     """ 
    141     whole = pi * (radius + thickness) ** 2 * (length + 2 * thickness) 
    142     core = pi * radius ** 2 * length 
    143     return whole, whole - core 
    144137 
    145138def random(): 
Note: See TracChangeset for help on using the changeset viewer.