Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/core_shell_ellipsoid.py

    r8e68ea0 r7c2935c  
    137137# pylint: enable=bad-whitespace, line-too-long 
    138138 
    139 source = ["lib/sas_3j1x_x.c", "lib/gfn.c", "lib/gauss76.c", 
     139source = ["lib/sph_j1c.c", "lib/gfn.c", "lib/gauss76.c", 
    140140          "core_shell_ellipsoid.c"] 
    141141 
     
    162162 
    163163q = 0.1 
    164 phi = pi/6 
    165 qx = q*cos(phi) 
    166 qy = q*sin(phi) 
    167 # After redefinition of angles find new reasonable values for unit test 
     164# tests had in old coords theta=0, phi=0; new coords theta=90, phi=0 
     165qx = q*cos(pi/6.0) 
     166qy = q*sin(pi/6.0) 
     167# 11Jan2017 RKH sorted tests after redefinition of angles 
    168168tests = [ 
    169169     # Accuracy tests based on content in test/utest_coreshellellipsoidXTmodel.py 
     
    193193     }, 0.01, 8688.53], 
    194194 
    195     [{'background': 0.001}, (0.4, 0.5), 0.00690673], 
     195   # 2D tests 
     196   [{'background': 0.001, 
     197     'theta': 90.0, 
     198     'phi': 0.0, 
     199     }, (0.4, 0.5), 0.00690673], 
    196200 
    197201   [{'radius_equat_core': 20.0, 
     
    204208      'background': 0.01, 
    205209      'scale': 0.01, 
    206 # assuming theta and phi zero here? 
     210      'theta': 90.0, 
     211      'phi': 0.0, 
    207212     }, (qx, qy), 0.01000025], 
    208213    ] 
Note: See TracChangeset for help on using the changeset viewer.