Changeset 7f47777 in sasmodels


Ignore:
Timestamp:
Feb 2, 2016 10:31:52 AM (9 years ago)
Author:
richardh
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:
3a45c2c
Parents:
dcdf29d
Message:

RKH added simple 1d unit test as per sasview

Location:
sasmodels/models
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/HayterMSAsq.py

    reb69cce r7f47777  
    9090# odd that the default st has saltconc zero 
    9191demo = dict(effect_radius = 20.75,charge=19.0,volfraction = 0.0192,temperature=318.16,saltconc=0.05,dielectconst=71.08,effect_radius_pd = 0.1,effect_radius_pd_n = 40) 
     92# 
     93# attempt to use same values as old sasview unit test 
     94tests = [ 
     95        [ {'scale': 1.0, 'background' : 0.0, 'effect_radius' : 20.75, 'charge' : 19.0, 'volfraction' : 0.0192, 'temperature' : 298.0, 
     96          'saltconc' : 0,'dielectconst' : 78.0, 'effect_radius_pd' : 0}, [0.0010], [0.0712928]] 
     97        ] 
    9298 
  • sasmodels/models/hardsphere.py

    r7ed702f r7f47777  
    106106oldpars = dict() 
    107107 
     108tests = [ 
     109        [ {'scale': 1.0, 'background' : 0.0, 'effect_radius' : 50.0, 'volfraction' : 0.2, 
     110           'effect_radius_pd' : 0}, [0.001], [0.209128]] 
     111        ] 
     112 
  • sasmodels/models/lamellarCaille.py

    rd18f8a8 r7f47777  
    122122oldpars = dict(thickness='delta', Nlayers='N_plates', Caille_parameter='caille', 
    123123               sld='sld_bi',solvent_sld='sld_sol') 
     124# 
     125tests = [ 
     126        [ {'scale': 1.0, 'background' : 0.0, 'thickness' : 30.,'Nlayers' : 20.0, 'spacing' : 400., 
     127            'Caille_parameter' : 0.1, 'sld' : 6.3, 'solvent_sld' : 1.0, 
     128            'thickness_pd' : 0.0, 'spacing_pd' : 0.0 }, [0.001], [28895.13397]] 
     129        ] 
  • sasmodels/models/lamellarCailleHG.py

    rd4666ca r7f47777  
    139139 
    140140oldname = 'LamellarPSHGModel' 
     141 
    141142oldpars = dict( 
    142143    tail_length='deltaT', head_length='deltaH', Nlayers='n_plates', 
    143144    Caille_parameter='caille', sld='sld_tail', head_sld='sld_head', 
    144145    solvent_sld='sld_solvent') 
     146# 
     147tests = [ 
     148        [ {'scale': 1.0, 'background' : 0.0, 'tail_length' : 10.0, 'head_length' : 2.0,'Nlayers' : 30.0, 'spacing' : 40., 
     149            'Caille_parameter' : 0.001, 'sld' : 0.4, 'head_sld' : 2.0, 'solvent_sld' : 6.0, 
     150            'tail_length_pd' : 0.0, 'head_length_pd' : 0.0, 'spacing_pd' : 0.0 }, [0.001], [6838238.571488]] 
     151        ] 
  • sasmodels/models/lamellarFFHG.py

    reb69cce r7f47777  
    121121oldpars = dict(head_length='h_thickness', tail_length='t_length', 
    122122               sld='sld_tail', head_sld='sld_head', solvent_sld='sld_solvent') 
     123# 
     124tests = [ 
     125        [ {'scale': 1.0, 'background' : 0.0, 'tail_length' : 15.0, 'head_length' : 10.0,'sld' : 0.4, 
     126         'head_sld' : 3.0, 'solvent_sld' : 6.0, }, [0.001], [653143.9209]] 
     127        ] 
    123128 
     129 
  • sasmodels/models/lamellarPC.py

    rd18f8a8 r7f47777  
    148148oldpars = dict(spacing_polydisp='pd_spacing', sld='sld_layer', 
    149149               solvent_sld='sld_solvent') 
     150# 
     151tests = [ 
     152        [ {'scale': 1.0, 'background' : 0.0, 'thickness' : 33.,'Nlayers' : 20.0, 'spacing' : 250., 'spacing_polydisp' : 0.2, 
     153            'sld' : 1.0, 'solvent_sld' : 6.34, 
     154            'thickness_pd' : 0.0, 'thickness_pd_n' : 40 }, [0.001, 0.215268], [21829.3, 0.00487686]] 
     155        ] 
  • sasmodels/models/stickyhardsphere.py

    rd18f8a8 r7f47777  
    182182demo = dict(effect_radius=200, volfraction=0.2, perturb=0.05, 
    183183            stickiness=0.2, effect_radius_pd=0.1, effect_radius_pd_n=40) 
     184# 
     185tests = [ 
     186        [ {'scale': 1.0, 'background' : 0.0, 'effect_radius' : 50.0, 'perturb' : 0.05, 'stickiness' : 0.2, 'volfraction' : 0.1, 
     187           'effect_radius_pd' : 0}, [0.001], [1.09718]] 
     188        ] 
    184189 
     190 
Note: See TracChangeset for help on using the changeset viewer.