Changeset 07a6700 in sasmodels


Ignore:
Timestamp:
Jan 27, 2016 4:01:36 AM (8 years ago)
Author:
piotr
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:
87edabf
Parents:
29da213
Message:

More unit tests for converted models.

Location:
sasmodels/models
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/be_polyelectrolyte.py

    r97cb037 r07a6700  
    133133               polymer_concentration='c') 
    134134 
    135 tests = [[{'contrast_factor':       10.0, 
     135tests = [ 
     136         # Accuracy tests based on content in test/utest_other_models.py 
     137         [{'contrast_factor':       10.0, 
     138           'bjerrum_length':         7.1, 
     139           'virial_param':          12.0, 
     140           'monomer_length':        10.0, 
     141           'salt_concentration':     0.0, 
     142           'ionization_degree':      0.05, 
     143           'polymer_concentration':  0.7, 
     144           'background':             0.001, 
     145           }, 0.001, 0.0948379], 
     146 
     147         # Additional tests with larger range of parameters 
     148         [{'contrast_factor':       10.0, 
    136149           'bjerrum_length':       100.0, 
    137150           'virial_param':           3.0, 
  • sasmodels/models/gauss_lorentz_gel.py

    r29da213 r07a6700  
    110110               dynamic_cor_length='dyn_colength') 
    111111 
    112 tests = [[{'gauss_scale_factor':  10.0, 
     112tests = [ 
     113         # Accuracy tests based on content in test/utest_extra_models.py 
     114         [{'gauss_scale_factor':  100.0, 
     115           'static_cor_length':   100.0, 
     116           'lorentz_scale_factor': 50.0, 
     117           'dynamic_cor_length':   20.0, 
     118           }, 0.001, 149.481], 
     119 
     120         [{'gauss_scale_factor':  100.0, 
     121           'static_cor_length':   100.0, 
     122           'lorentz_scale_factor': 50.0, 
     123           'dynamic_cor_length':   20.0, 
     124           }, 0.105363, 9.1903], 
     125 
     126         [{'gauss_scale_factor':  100.0, 
     127           'static_cor_length':   100.0, 
     128           'lorentz_scale_factor': 50.0, 
     129           'dynamic_cor_length':   20.0, 
     130           }, 0.441623, 0.632811], 
     131 
     132         # Additional tests with larger range of parameters 
     133         [{'gauss_scale_factor':  10.0, 
    113134           'static_cor_length':  100.0, 
    114135           'lorentz_scale_factor': 3.0, 
  • sasmodels/models/mass_fractal.py

    r9c461c7 r07a6700  
    9898               cutoff_length='co_length') 
    9999 
    100 tests = [[{'radius':        2.0, 
     100tests = [ 
     101         # Accuracy tests based on content in test/utest_other_models.py 
     102         [{'radius':       10.0, 
     103           'mass_dim':      1.9, 
     104           'cutoff_length': 2.3, 
     105           }, 0.05, 279.59322], 
     106 
     107         # Additional tests with larger range of parameters 
     108         [{'radius':        2.0, 
    101109           'mass_dim':      3.3, 
    102110           'cutoff_length': 1.0, 
  • sasmodels/models/mass_surface_fractal.py

    r9c461c7 r07a6700  
    106106               primary_rg='primary_rg') 
    107107 
    108 tests = [[{'radius':        2.0, 
    109            'mass_dim':      3.3, 
     108tests = [ 
     109         # Accuracy tests based on content in test/utest_other_models.py 
     110         [{'mass_dim':      1.8, 
     111           'surface_dim':   2.3, 
     112           'cluster_rg':   86.7, 
     113           'primary_rg': 4000.0, 
     114           }, 0.05, 1.77537e-05], 
     115 
     116         # Additional tests with larger range of parameters 
     117         [{'mass_dim':      3.3, 
    110118           'surface_dim':   1.0, 
    111119           'cluster_rg':   90.0, 
     
    113121           }, 0.001, 0.18462699016], 
    114122 
    115          [{'radius':        1.0, 
    116            'mass_dim':      1.3, 
     123         [{'mass_dim':      1.3, 
    117124           'surface_dim':   1.0, 
    118125           'cluster_rg':   90.0, 
     
    121128           }, 0.001, 1.16539753641], 
    122129 
    123          [{'radius':        1.0, 
    124            'mass_dim':      2.3, 
     130         [{'mass_dim':      2.3, 
    125131           'surface_dim':   1.0, 
    126132           'cluster_rg':   90.0, 
  • sasmodels/models/polymer_excl_volume.py

    r513efc5 r07a6700  
    157157               porod_exp='m') 
    158158 
    159 tests = [[{'rg': 10, 'porod_exp': 4.0}, 0.1, 0.723436675809], 
     159tests = [ 
     160         # Accuracy tests based on content in test/polyexclvol_default_igor.txt 
     161         [{'rg': 60, 'porod_exp': 3.0}, 0.001, 0.998801], 
     162         [{'rg': 60, 'porod_exp': 3.0}, 0.105363, 0.0162751], 
     163         [{'rg': 60, 'porod_exp': 3.0}, 0.665075, 6.56261e-05], 
    160164 
     165         # Additional tests with larger range of parameters 
     166         [{'rg': 10, 'porod_exp': 4.0}, 0.1, 0.723436675809], 
    161167         [{'rg': 2.2, 'porod_exp': 22.0, 'background': 100.0}, 5.0, 100.0], 
    162  
    163168         [{'rg': 1.1, 'porod_exp': 1, 'background': 10.0, 'scale': 1.25}, 
    164169         20000., 10.0000712097] 
  • sasmodels/models/surface_fractal.py

    r9c461c7 r07a6700  
    100100               cutoff_length='co_length') 
    101101 
    102 tests = [[{'radius': 1.0, 'surface_dim': 1.0, 'cutoff_length': 10.0, 
     102tests = [ 
     103         # Accuracy tests based on content in test/utest_other_models.py 
     104         [{'radius': 10.0, 'surface_dim': 2.0, 'cutoff_length': 500.0, 
     105           }, 0.05, 301428.65916], 
     106 
     107         # Additional tests with larger range of parameters 
     108         [{'radius': 1.0, 'surface_dim': 1.0, 'cutoff_length': 10.0, 
    103109           }, 0.332070182643, 1125.00321004], 
    104110 
  • sasmodels/models/two_lorentzian.py

    r513efc5 r07a6700  
    117117               lorentz_exp_1='exponent_1',  lorentz_exp_2='exponent_2') 
    118118 
    119 tests = [[{'lorentz_scale_1':   10.0, 
     119tests = [ 
     120         # Accuracy tests based on content in test/utest_extra_models.py 
     121         [{'lorentz_scale_1':   10.0, 
     122           'lorentz_length_1': 100.0, 
     123           'lorentz_exp_1':      3.0, 
     124           'lorentz_scale_2':    1.0, 
     125           'lorentz_length_2':  10.0, 
     126           'lorentz_exp_2':      2.0, 
     127           'background':         0.1, 
     128           }, 0.001, 11.08991], 
     129 
     130         [{'lorentz_scale_1':   10.0, 
     131           'lorentz_length_1': 100.0, 
     132           'lorentz_exp_1':      3.0, 
     133           'lorentz_scale_2':    1.0, 
     134           'lorentz_length_2':  10.0, 
     135           'lorentz_exp_2':      2.0, 
     136           'background':         0.1, 
     137           }, 0.150141, 0.410245], 
     138 
     139         [{'lorentz_scale_1':   10.0, 
     140           'lorentz_length_1': 100.0, 
     141           'lorentz_exp_1':      3.0, 
     142           'lorentz_scale_2':    1.0, 
     143           'lorentz_length_2':  10.0, 
     144           'lorentz_exp_2':      2.0, 
     145           'background':         0.1, 
     146           }, 0.442528, 0.148699], 
     147 
     148         # Additional tests with larger range of parameters 
     149         [{'lorentz_scale_1':   10.0, 
    120150           'lorentz_length_1': 100.0, 
    121151           'lorentz_exp_1':      3.0, 
Note: See TracChangeset for help on using the changeset viewer.