Changeset 3c44c34 in sasmodels for sasmodels/weights.py


Ignore:
Timestamp:
Jan 12, 2018 9:46:11 AM (6 years ago)
Author:
dirk
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3d58247
Parents:
1ceb951 (diff), 4c08e69 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'boltzmann' of https://github.com/SasView/sasmodels into boltzmann

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/weights.py

    r1ceb951 r3c44c34  
    8181class GaussianDispersion(Dispersion): 
    8282    r""" 
    83     Gaussian dispersion, with 1-\ $\sigma$ width. 
     83    Gaussian dispersion, with 1-$\sigma$ width. 
    8484 
    8585    .. math:: 
     
    130130class LogNormalDispersion(Dispersion): 
    131131    r""" 
    132     log Gaussian dispersion, with 1-\ $\sigma$ width. 
     132    log Gaussian dispersion, with 1-$\sigma$ width. 
    133133 
    134134    .. math:: 
     
    148148class SchulzDispersion(Dispersion): 
    149149    r""" 
    150     Schultz dispersion, with 1-\ $\sigma$ width. 
     150    Schultz dispersion, with 1-$\sigma$ width. 
    151151 
    152152    .. math:: 
     
    255255    """ 
    256256    if disperser == "array": 
    257         raise NotImplementedError("Don't handle arrays through get_weights; use values and weights directly") 
     257        raise NotImplementedError("Don't handle arrays through get_weights;" 
     258                                  " use values and weights directly") 
    258259    cls = MODELS[disperser] 
    259260    obj = cls(n, width, nsigmas) 
     
    275276    import pylab 
    276277 
    277     if any(len(dispersity)>1 for value, dispersity, weights in mesh): 
     278    if any(len(dispersity) > 1 for value, dispersity, weights in mesh): 
    278279        labels = [p.name for p in model_info.parameters.call_parameters] 
    279280        #pylab.interactive(True) 
    280281        pylab.figure() 
    281         for (v,x,w), s in zip(mesh, labels): 
     282        for (v, x, w), s in zip(mesh, labels): 
    282283            if len(x) > 1: 
    283284                pylab.plot(x, w, '-o', label=s) 
Note: See TracChangeset for help on using the changeset viewer.