Changeset a66b004 in sasmodels for sasmodels/weights.py


Ignore:
Timestamp:
Nov 30, 2017 12:30:08 AM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
34bbb9c
Parents:
26a6608 (diff), b669b49 (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 'master' into boltzmann

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/weights.py

    r75e4319 ra66b004  
    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 
     278<<<<<<< HEAD 
    277279    if any(len(dispersity)>1 for value, dispersity, weights in mesh): 
    278280        labels = [p.name for p in model_info.parameters.call_parameters] 
     
    280282        pylab.figure() 
    281283        for (v,x,w), s in zip(mesh, labels): 
     284======= 
     285    if any(len(dispersity) > 1 for value, dispersity, weights in mesh): 
     286        labels = [p.name for p in model_info.parameters.call_parameters] 
     287        #pylab.interactive(True) 
     288        pylab.figure() 
     289        for (v, x, w), s in zip(mesh, labels): 
     290>>>>>>> master 
    282291            if len(x) > 1: 
    283292                pylab.plot(x, w, '-o', label=s) 
Note: See TracChangeset for help on using the changeset viewer.