Changeset cf3d0ce in sasmodels


Ignore:
Timestamp:
Nov 7, 2018 1:16:34 AM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
f64b154, 646eeaa, bd91e8f, c11d09f, 9b5fd42
Parents:
99658f6
Message:

remove dead code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/pearl_necklace.py

    r99658f6 rcf3d0ce  
    100100    ] 
    101101     
    102 #def volume(radius, edge_sep, thick_string, num_pearls): 
    103 #    """ 
    104 #    Calculates the total particle volume of the necklace. 
    105 #    Redundant with form_volume. 
    106 #    """ 
    107 #    num_pearls = int(num_pearls + 0.5) 
    108 #    number_of_strings = num_pearls - 1.0 
    109 #    string_vol = edge_sep * pi * pow((thick_string / 2.0), 2.0) 
    110 #    pearl_vol = 4.0 /3.0 * pi * pow(radius, 3.0) 
    111 #    total_vol = number_of_strings * string_vol 
    112 #    total_vol += num_pearls * pearl_vol 
    113 #    return total_vol 
    114 # 
    115 #def ER(radius, edge_sep, thick_string, num_pearls): 
    116 #    """ 
    117 #    Calculation for effective radius. 
    118 #    """ 
    119 #    num_pearls = int(num_pearls + 0.5) 
    120 #    tot_vol = volume(radius, edge_sep, thick_string, num_pearls) 
    121 #    rad_out = (tot_vol/(4.0/3.0*pi)) ** (1./3.) 
    122 #    return rad_out 
    123  
    124102def random(): 
    125103    radius = 10**np.random.uniform(1, 3) # 1 - 1000 
Note: See TracChangeset for help on using the changeset viewer.