Changeset 0db85af in sasmodels


Ignore:
Timestamp:
Oct 28, 2017 9:33:21 PM (7 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:
dd4d95d
Parents:
3d40839
git-author:
Paul Kienzle <pkienzle@…> (10/28/17 21:33:05)
git-committer:
Paul Kienzle <pkienzle@…> (10/28/17 21:33:21)
Message:

Now allowed '-' before and after '$', such as 1-$\sigma$ or $x$-$y$-$z$

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • doc/guide/resolution.rst

    r1f058ea r0db85af  
    209209$x'_0 = x_0 \cos(\theta) + y_0 \sin(\theta)$ and 
    210210$y'_0 = -x_0 \sin(\theta) + y_0 \cos(\theta)$. 
    211 Note that the rotation angle is zero for a $x$\ -\ $y$ symmetric 
     211Note that the rotation angle is zero for a $x$-$y$ symmetric 
    212212elliptical Gaussian distribution. The $A$ is a normalization factor. 
    213213 
     
    233233 
    234234Since the weighting factor on each of the bins is known, it is convenient to 
    235 transform $x'$\ -\ $y'$ back to $x$\ -\ $y$ coordinates (by rotating it 
     235transform $x'$-$y'$ back to $x$-$y$ coordinates (by rotating it 
    236236by $-\theta$ around the $z$\ -axis). 
    237237 
     
    254254    y'_0 &= 0 
    255255 
    256 while for a $x$\ -\ $y$ symmetric smear 
     256while for a $x$-$y$ symmetric smear 
    257257 
    258258.. math:: 
  • explore/jitter.py

    rb9578fc r0db85af  
    496496    # the maximum width to 90. 
    497497    dlimit = 30 if dist == 'gaussian' else 90/sqrt(3) 
    498     sdtheta = Slider(axdtheta, 'dTheta', 0, dlimit, valinit=dtheta) 
     498    sdtheta = Slider(axdtheta, 'dTheta', 0, 2*dlimit, valinit=dtheta) 
    499499    sdphi = Slider(axdphi, 'dPhi', 0, 2*dlimit, valinit=dphi) 
    500500    sdpsi = Slider(axdpsi, 'dPsi', 0, 2*dlimit, valinit=dpsi) 
     
    512512        draw_jitter(ax, view, jitter, dist=dist, size=size) 
    513513        #draw_jitter(ax, view, (0,0,0)) 
    514         draw_mesh(ax, view, jitter, dist=dist) 
     514        draw_mesh(ax, view, jitter, dist=dist, n=30) 
    515515        draw_scattering(calculator, ax, view, jitter, dist=dist) 
    516516        plt.gcf().canvas.draw() 
  • sasmodels/rst2html.py

    r870a2f4 r0db85af  
    104104 
    105105 
    106 _dollar = re.compile(r"(?:^|(?<=\s|[(]))[$]([^\n]*?)(?<![\\])[$](?:$|(?=\s|[.,;)\\]))") 
     106_dollar = re.compile(r"(?:^|(?<=\s|[-(]))[$]([^\n]*?)(?<![\\])[$](?:$|(?=\s|[-.,;)\\]))") 
    107107_notdollar = re.compile(r"\\[$]") 
    108108def replace_dollar(content): 
     
    248248if __name__ == "__main__": 
    249249    import sys 
    250     view_help(sys.argv[1], qt=True) 
    251  
     250    view_help(sys.argv[1], qt=False) 
     251 
  • sasmodels/weights.py

    r3c24ccd r0db85af  
    8181class GaussianDispersion(Dispersion): 
    8282    r""" 
    83     Gaussian dispersion, with 1-\ $\sigma$ width. 
     83    Gaussian dispersion, with 1-$\sigma$ width. 
    8484 
    8585    .. math:: 
     
    116116class LogNormalDispersion(Dispersion): 
    117117    r""" 
    118     log Gaussian dispersion, with 1-\ $\sigma$ width. 
     118    log Gaussian dispersion, with 1-$\sigma$ width. 
    119119 
    120120    .. math:: 
     
    134134class SchulzDispersion(Dispersion): 
    135135    r""" 
    136     Schultz dispersion, with 1-\ $\sigma$ width. 
     136    Schultz dispersion, with 1-$\sigma$ width. 
    137137 
    138138    .. math:: 
Note: See TracChangeset for help on using the changeset viewer.