Changeset b297ba9 in sasmodels for sasmodels/models/parallelepiped.py


Ignore:
Timestamp:
Mar 20, 2019 5:03:50 PM (5 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:
4e28511
Parents:
0d362b7
Message:

lint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/parallelepiped.py

    r99658f6 rb297ba9  
    180180   14 (1961) 185-211 
    181181.. [#] R Nayuk and K Huber, *Z. Phys. Chem.*, 226 (2012) 837-854 
    182 L. Onsager, Ann. New York Acad. Sci. 51, 627-659 (1949).  
     182L. Onsager, Ann. New York Acad. Sci. 51, 627-659 (1949). 
    183183 
    184184Authorship and Verification 
     
    192192 
    193193import numpy as np 
    194 from numpy import pi, inf, sqrt, sin, cos 
     194from numpy import inf 
    195195 
    196196name = "parallelepiped" 
     
    233233have_Fq = True 
    234234effective_radius_type = [ 
    235     "equivalent cylinder excluded volume", "equivalent volume sphere",  
     235    "equivalent cylinder excluded volume", "equivalent volume sphere", 
    236236    "half length_a", "half length_b", "half length_c", 
    237237    "equivalent circular cross-section", "half ab diagonal", "half diagonal", 
     
    239239 
    240240def random(): 
     241    """Return a random parameter set for the model.""" 
    241242    length = 10**np.random.uniform(1, 4.7, size=3) 
    242243    pars = dict( 
     
    261262# rkh 7/4/17 add random unit test for 2d, note make all params different, 
    262263# 2d values not tested against other codes or models 
    263 qx, qy = 0.2 * cos(pi/6.), 0.2 * sin(pi/6.) 
     264qx, qy = 0.2 * np.cos(np.pi/6.), 0.2 * np.sin(np.pi/6.) 
    264265tests = [[{}, 0.2, 0.17758004974], 
    265266         [{}, [0.2], [0.17758004974]], 
Note: See TracChangeset for help on using the changeset viewer.