Ignore:
Timestamp:
Apr 6, 2017 4:01:42 AM (7 years ago)
Author:
richardh
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
e2d6e3b
Parents:
b6e0636
Message:

unit tests added, needs opencl testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/elliptical_cylinder.py

    rfcb33e4 r0b56f38  
    108108""" 
    109109 
    110 from numpy import pi, inf, sqrt 
     110from numpy import pi, inf, sqrt, sin, cos 
    111111 
    112112name = "elliptical_cylinder" 
     
    149149                           + (length + radius) * (length + pi * radius)) 
    150150    return 0.5 * (ddd) ** (1. / 3.) 
     151q = 0.1 
     152# april 6 2017, rkh added a 2d unit test, NOT READY YET pull #890 branch assume correct! 
     153qx = q*cos(pi/6.0) 
     154qy = q*sin(pi/6.0) 
    151155 
    152156tests = [ 
     
    158162      'sld_solvent':1.0, 'background':0.0}, 
    159163     0.001, 675.504402], 
     164#    [{'theta':80., 'phi':10.}, (qx, qy), 7.88866563001 ], 
    160165] 
Note: See TracChangeset for help on using the changeset viewer.