Changeset ff7119b in sasmodels for sasmodels/dll.py


Ignore:
Timestamp:
Aug 26, 2014 8:27:06 PM (10 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:
5d4777d
Parents:
a7684e5
Message:

docu update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/dll.py

    rce27e21 rff7119b  
    2626    for single and 'd', 'float64' or 'double' for double.  Double precision 
    2727    is an optional extension which may not be available on all devices. 
     28 
     29    Call :meth:`release` when done with the kernel. 
    2830    """ 
    2931    def __init__(self, dllpath, info): 
     
    6971        return DllInput(q_vectors) 
    7072 
     73    def release(self): 
     74        pass # TODO: should release the dll 
     75 
    7176 
    7277class DllInput(object): 
     
    100105 
    101106class DllKernel(object): 
     107    """ 
     108    Callable SAS kernel. 
     109 
     110    *kernel* is the DllKernel object to call. 
     111 
     112    *info* is the module information 
     113 
     114    *input* is the DllInput q vectors at which the kernel should be 
     115    evaluated. 
     116 
     117    The resulting call method takes the *pars*, a list of values for 
     118    the fixed parameters to the kernel, and *pd_pars*, a list of (value,weight) 
     119    vectors for the polydisperse parameters.  *cutoff* determines the 
     120    integration limits: any points with combined weight less than *cutoff* 
     121    will not be calculated. 
     122 
     123    Call :meth:`release` when done with the kernel instance. 
     124    """ 
    102125    def __init__(self, kernel, info, input): 
    103126        self.input = input 
    104127        self.kernel = kernel 
    105         self.info = info 
    106128        self.res = np.empty(input.nq, input.dtype) 
    107129        dim = '2d' if input.is_2D else '1d' 
Note: See TracChangeset for help on using the changeset viewer.