Changeset 2d81cfe in sasmodels for sasmodels/models/mass_fractal.py


Ignore:
Timestamp:
Nov 29, 2017 1:13:23 PM (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:
237b800f
Parents:
a839b22
Message:

lint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/mass_fractal.py

    r4553dae r2d81cfe  
    5151D Mildner and P Hall, *J. Phys. D: Appl. Phys.*, 
    525219 (1986) 1535-1545 Equation(9) 
    53  
    54  
    5553""" 
    5654 
     55import numpy as np 
    5756from numpy import inf 
    5857 
     
    8988 
    9089def random(): 
    91     import numpy as np 
    9290    radius = 10**np.random.uniform(0.7, 4) 
    9391    cutoff_length = 10**np.random.uniform(0.7, 2)*radius 
    9492    # TODO: fractal dimension should range from 1 to 6 
    9593    fractal_dim_mass = 2*np.random.beta(3, 4) + 1 
    96     Vf = 10**np.random.uniform(-4, -1) 
     94    #volfrac = 10**np.random.uniform(-4, -1) 
    9795    pars = dict( 
    9896        #background=0, 
    99         scale=1, #1e5*Vf/radius**(fractal_dim_mass), 
     97        scale=1, #1e5*volfrac/radius**(fractal_dim_mass), 
    10098        radius=radius, 
    10199        cutoff_length=cutoff_length, 
Note: See TracChangeset for help on using the changeset viewer.