Changeset 51f14603 in sasview for src/sans/models/BaseComponent.py


Ignore:
Timestamp:
Apr 3, 2014 11:37:53 AM (11 years ago)
Author:
Peter Parker
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
2f2d9d0
Parents:
eea3ffa
Message:

Refs #202 - Fix Sphinx build errors (not including park-1.2.1/). Most warnings remain.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sans/models/BaseComponent.py

    r5777106 r51f14603  
    9696        Evaluate a distribution of q-values. 
    9797         
    98         * For 1D, a numpy array is expected as input: 
     98        * For 1D, a numpy array is expected as input: :: 
    9999         
    100100            evalDistribution(q) 
    101101             
     102          where q is a numpy array. 
     103         
     104         
     105        * For 2D, a list of numpy arrays are expected: [qx_prime,qy_prime], 
     106          where 1D arrays, :: 
     107         
     108              qx_prime = [ qx[0], qx[1], qx[2], ....] 
     109 
     110          and :: 
     111 
     112              qy_prime = [ qy[0], qy[1], qy[2], ....]  
     113         
     114        Then get :: 
     115 
     116            q = numpy.sqrt(qx_prime^2+qy_prime^2) 
     117         
     118        that is a qr in 1D array; :: 
     119 
     120            q = [q[0], q[1], q[2], ....]  
     121         
     122        ..note:: 
     123          Due to 2D speed issue, no anisotropic scattering  
     124          is supported for python models, thus C-models should have 
     125          their own evalDistribution methods. 
     126         
     127        The method is then called the following way: :: 
     128         
     129            evalDistribution(q) 
     130 
    102131        where q is a numpy array. 
    103132         
    104          
    105         * For 2D, a list of numpy arrays are expected: [qx_prime,qy_prime], 
    106           where 1D arrays, 
    107          
    108         qx_prime = [ qx[0], qx[1], qx[2], ....] 
    109         and 
    110         qy_prime = [ qy[0], qy[1], qy[2], ....]  
    111          
    112         Then get 
    113         q = numpy.sqrt(qx_prime^2+qy_prime^2) 
    114          
    115         that is a qr in 1D array; 
    116         q = [q[0], q[1], q[2], ....]  
    117          
    118         :Note: Due to 2D speed issue, no anisotropic scattering  
    119             is supported for python models, thus C-models should have 
    120              their own evalDistribution methods. 
    121          
    122         The method is then called the following way: 
    123          
    124         evalDistribution(q) 
    125         where q is a numpy array. 
    126          
    127         :param qdist: ndarray of scalar q-values or list [qx,qy]  
    128                     where qx,qy are 1D ndarrays  
    129          
     133        :param qdist: ndarray of scalar q-values or list [qx,qy] where qx,qy are 1D ndarrays 
    130134        """ 
    131135        if qdist.__class__.__name__ == 'list': 
Note: See TracChangeset for help on using the changeset viewer.