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


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

lint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/ellipsoid.py

    r110f69c r2d81cfe  
    123123from __future__ import division 
    124124 
     125import numpy as np 
    125126from numpy import inf, sin, cos, pi 
    126127 
     
    163164 
    164165def ER(radius_polar, radius_equatorial): 
    165     import numpy as np 
    166166    # see equation (26) in A.Isihara, J.Chem.Phys. 18(1950)1446-1449 
    167167    ee = np.empty_like(radius_polar) 
     
    185185 
    186186def random(): 
    187     import numpy as np 
    188     V = 10**np.random.uniform(5, 12) 
     187    volume = 10**np.random.uniform(5, 12) 
    189188    radius_polar = 10**np.random.uniform(1.3, 4) 
    190     radius_equatorial = np.sqrt(V/radius_polar) # ignore 4/3 pi 
     189    radius_equatorial = np.sqrt(volume/radius_polar) # ignore 4/3 pi 
    191190    pars = dict( 
    192191        #background=0, sld=0, sld_solvent=1, 
     
    208207qx = q*cos(pi/6.0) 
    209208qy = q*sin(pi/6.0) 
    210 tests = [[{}, 0.05, 54.8525847025], 
    211         [{'theta':80., 'phi':10.}, (qx, qy), 1.74134670026], 
    212         ] 
     209tests = [ 
     210    [{}, 0.05, 54.8525847025], 
     211    [{'theta':80., 'phi':10.}, (qx, qy), 1.74134670026], 
     212] 
    213213del qx, qy  # not necessary to delete, but cleaner 
Note: See TracChangeset for help on using the changeset viewer.