Changeset cf3d0ce in sasmodels


Ignore:
Timestamp:
Nov 7, 2018 1:16:34 AM (12 days ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
beta_approx, py3, ticket-1015-gpu-mem-error, ticket-1157, ticket-608-user-defined-weights, ticket_1156
Children:
646eeaa, 8064d5e, c1799d3, 4e96703, 00afc15, 9b5fd42, cc8b183
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.