Changeset 143e2f7 in sasmodels


Ignore:
Timestamp:
Feb 19, 2015 7:28:44 PM (10 years ago)
Author:
pkienzle
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
cd55ac3
Parents:
ab55943
Message:

fix cylinder test case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/cylinder.py

    r1ed9e3f r143e2f7  
    108108""" 
    109109 
     110import numpy as np 
    110111from numpy import pi, inf 
    111112 
     
    182183# Precision defaults to 7 digits (relative) for single, 14 for double 
    183184# May want a limited precision version that checks for 8-n or 15-n digits respectively 
     185qx,qy = 0.2*np.cos(2.5), 0.2*np.sin(2.5) 
    184186tests = [ 
    185187    [{},  0.2, 0.041761386790780453], 
    186188    [{}, [0.2], [0.041761386790780453]], 
    187     [{'theta':10.0, 'phi':10.0}, (0.2, 2.5), 0.038176446608393366], 
    188     [{'theta':10.0, 'phi':10.0}, [(0.2, 2.5)], [0.038176446608393366]], 
     189    [{'theta':10.0, 'phi':10.0}, (qx, qy), 0.03414647218513852], 
     190    [{'theta':10.0, 'phi':10.0}, [(qx, qy)], [0.03414647218513852]], 
    189191    ] 
    190  
     192del qx,qy  # not necessary to delete, but cleaner 
Note: See TracChangeset for help on using the changeset viewer.