Changeset ac60a39 in sasmodels for sasmodels/product.py


Ignore:
Timestamp:
Nov 20, 2017 11:33:17 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:
1f159bd
Parents:
4f5afc9 (diff), 146793b (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 ticket-776-orientation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/product.py

    rce99754 rac60a39  
    142142    def __init__(self, model_info, P, S): 
    143143        # type: (ModelInfo, KernelModel, KernelModel) -> None 
     144        #: Combined info plock for the product model 
    144145        self.info = model_info 
     146        #: Form factor modelling individual particles. 
    145147        self.P = P 
     148        #: Structure factor modelling interaction between particles. 
    146149        self.S = S 
    147         self.dtype = P.dtype 
     150        #: Model precision. This is not really relevant, since it is the 
     151        #: individual P and S models that control the effective dtype, 
     152        #: converting the q-vectors to the correct type when the kernels 
     153        #: for each are created. Ideally this should be set to the more 
     154        #: precise type to avoid loss of precision, but precision in q is 
     155        #: not critical (single is good enough for our purposes), so it just 
     156        #: uses the precision of the form factor. 
     157        self.dtype = P.dtype  # type: np.dtype 
    148158 
    149159    def make_kernel(self, q_vectors): 
Note: See TracChangeset for help on using the changeset viewer.