Changeset d138d43 in sasmodels for sasmodels/sasview_model.py


Ignore:
Timestamp:
Nov 30, 2015 2:24:28 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
eb69cce
Parents:
1ec7efa
Message:

remove documentation build errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sasview_model.py

    raa4946b rd138d43  
    229229 
    230230    def evalDistribution(self, qdist): 
    231         """ 
     231        r""" 
    232232        Evaluate a distribution of q-values. 
    233233 
    234         * For 1D, a numpy array is expected as input: :: 
     234        :param qdist: array of q or a list of arrays [qx,qy] 
     235 
     236        * For 1D, a numpy array is expected as input 
     237 
     238        :: 
    235239 
    236240            evalDistribution(q) 
    237241 
    238           where q is a numpy array. 
    239  
    240         * For 2D, a list of numpy arrays are expected: [qx,qy], 
    241           with 1D arrays:: 
     242          where *q* is a numpy array. 
     243 
     244        * For 2D, a list of *[qx,qy]* is expected with 1D arrays as input 
     245 
     246        :: 
    242247 
    243248              qx = [ qx[0], qx[1], qx[2], ....] 
    244  
    245           and:: 
    246  
    247249              qy = [ qy[0], qy[1], qy[2], ....] 
    248250 
    249         Then get :: 
    250  
    251             q = numpy.sqrt(qx^2+qy^2) 
    252  
    253         that is a qr in 1D array:: 
    254  
    255             q = [q[0], q[1], q[2], ....] 
    256  
    257  
    258         :param qdist: ndarray of scalar q-values or list [qx,qy] 
    259         where qx,qy are 1D ndarrays 
     251        If the model is 1D only, then 
     252 
     253        .. math:: 
     254 
     255            q = \sqrt{q_x^2+q_y^2} 
     256 
    260257        """ 
    261258        if isinstance(qdist, (list, tuple)): 
Note: See TracChangeset for help on using the changeset viewer.