Changeset a80e64c in sasmodels


Ignore:
Timestamp:
Oct 13, 2016 12:35:53 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
11ca2ab, a0d75ce, 997d4eb
Parents:
9951a86
Message:

add sasview compatible MultiplicationModel? interface to product model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sasview_model.py

    r64f0a1c ra80e64c  
    2121from . import core 
    2222from . import custom 
     23from . import product 
    2324from . import generate 
    2425from . import weights 
     
    168169 
    169170 
     171def MultiplicationModel(form_factor, structure_factor): 
     172    # type: ("SasviewModel", "SasviewModel") -> "SasviewModel" 
     173    model_info = product.make_product_info(form_factor._model_info, 
     174                                           structure_factor._model_info) 
     175    ConstructedModel = _make_model_from_info(model_info) 
     176    return ConstructedModel() 
     177 
    170178def _make_model_from_info(model_info): 
    171179    # type: (ModelInfo) -> SasviewModelType 
Note: See TracChangeset for help on using the changeset viewer.