Changes in / [d1c4760:ce896fd] in sasmodels


Ignore:
Location:
sasmodels
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    rfa1582e rd19962c  
    784784    n1 = int(args[1]) if len(args) > 1 else 1 
    785785    n2 = int(args[2]) if len(args) > 2 else 1 
    786     use_sasview = any(engine=='sasview' and count>0 
    787                       for engine, count in zip(engines, [n1, n2])) 
    788786 
    789787    # Get demo parameters from model definition, or use default parameters 
     
    813811    #import pprint; pprint.pprint(model_info) 
    814812    constrain_pars(model_info, pars) 
    815     if use_sasview: 
    816         constrain_new_to_old(model_info, pars) 
     813    constrain_new_to_old(model_info, pars) 
    817814    if opts['show_pars']: 
    818815        print(str(parlist(model_info, pars, opts['is2d']))) 
  • sasmodels/convert.py

    r2a3e1f5 rce896fd  
    138138    namelist = name.split('*') if '*' in name else [name] 
    139139    for name in namelist: 
    140         if name == 'stacked_disks': 
    141             _remove_pd(oldpars, 'n_stacking', name) 
    142         elif name == 'pearl_necklace': 
     140        if name == 'pearl_necklace': 
    143141            _remove_pd(oldpars, 'num_pearls', name) 
    144142            _remove_pd(oldpars, 'thick_string', name) 
  • sasmodels/models/_spherepy.py

    rd7028dc r49da079  
    11r""" 
    2 For information about polarised and magnetic scattering, see  
    3 the :doc:`magnetic help <../sasgui/perspectives/fitting/mag_help>` documentation. 
     2For information about polarised and magnetic scattering, click here_. 
     3 
     4.. _here: polar_mag_help.html 
    45 
    56Definition 
  • sasmodels/models/fuzzy_sphere.py

    rd7028dc r0cc31e1  
    11r""" 
    2 For information about polarised and magnetic scattering, see  
    3 the :doc:`magnetic help <../sasgui/perspectives/fitting/mag_help>` documentation. 
     2For information about polarised and magnetic scattering, click here_. 
     3 
     4.. _here: polar_mag_help.html 
    45 
    56Definition 
  • sasmodels/models/multilayer_vesicle.py

    rd7028dc rc6ca41e  
    2929    is used as the effective radius for *S(Q)* when $P(Q) * S(Q)$ is applied. 
    3030 
    31 For information about polarised and magnetic scattering, see  
    32 the :doc:`magnetic help <../sasgui/perspectives/fitting/mag_help>` documentation. 
     31 
     32 
     33For information about polarised and magnetic scattering, click here_. 
     34 
     35.. _here: polar_mag_help.html 
    3336 
    3437This code is based on the form factor calculations implemented in the NIST 
  • sasmodels/models/sphere.py

    rd7028dc r49da079  
    11r""" 
    2 For information about polarised and magnetic scattering, see  
    3 the :doc:`magnetic help <../sasgui/perspectives/fitting/mag_help>` documentation. 
     2For information about polarised and magnetic scattering, click here_. 
     3 
     4.. _here: polar_mag_help.html 
    45 
    56Definition 
  • sasmodels/models/stacked_disks.py

    r53215cf re664a11  
    100100J S Higgins and H C Benoit, *Polymers and Neutron Scattering*, Clarendon, Oxford, 1994 
    101101 
    102 **Author:** NIST IGOR/DANSE **on:** pre 2010 
    103  
    104 **Last Modified by:** Piotr Rozyczko **on:** February 18, 2016 
    105  
    106 **Last Reviewed by:** Richard Heenan **on:** March 22, 2016 
    107102""" 
    108103 
     
    162157 
    163158tests = [ 
    164     # Accuracy tests based on content in test/utest_extra_models.py. 
    165     # Added 2 tests with n_stacked = 5 using SasView 3.1.2 - PDB 
     159    # Accuracy tests based on content in test/utest_extra_models.py 
    166160    [{'core_thick': 10.0, 
    167161      'layer_thick': 15.0, 
     
    177171      'background': 0.001, 
    178172     }, 0.001, 5075.12], 
    179  
    180     [{'core_thick': 10.0, 
    181       'layer_thick': 15.0, 
    182       'radius': 3000.0, 
    183       'n_stacking': 5.0, 
    184       'sigma_d': 0.0, 
    185       'sld_core': 4.0, 
    186       'sld_layer': -0.4, 
    187       'solvent_sd': 5.0, 
    188       'theta': 0.0, 
    189       'phi': 0.0, 
    190       'scale': 0.01, 
    191       'background': 0.001, 
    192      }, 0.001, 5065.12793824], 
    193  
    194     [{'core_thick': 10.0, 
    195       'layer_thick': 15.0, 
    196       'radius': 3000.0, 
    197       'n_stacking': 5.0, 
    198       'sigma_d': 0.0, 
    199       'sld_core': 4.0, 
    200       'sld_layer': -0.4, 
    201       'solvent_sd': 5.0, 
    202       'theta': 0.0, 
    203       'phi': 0.0, 
    204       'scale': 0.01, 
    205       'background': 0.001, 
    206      }, 0.164, 0.0127673597265], 
    207173 
    208174    [{'core_thick': 10.0, 
Note: See TracChangeset for help on using the changeset viewer.