Changeset 08376e7 in sasmodels


Ignore:
Timestamp:
Mar 18, 2016 11:36:02 AM (9 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:
3a45c2c
Parents:
aceac39
Message:

sasview wrapper hackery

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sasview_model.py

    rde97440 r08376e7  
    3838    model_info = core.load_model_info(model_name) 
    3939    def __init__(self, multfactor=1): 
    40         SasviewModel.__init__(self, model_info) 
    41     attrs = dict(__init__=__init__) 
     40        SasviewModel.__init__(self) 
     41    attrs = dict(__init__=__init__, _model_info=model_info) 
    4242    ConstructedModel = type(model_info[namestyle], (SasviewModel,), attrs) 
    4343    return ConstructedModel 
     
    4747    Sasview wrapper for opencl/ctypes model. 
    4848    """ 
    49     def __init__(self, model_info): 
    50         self._model_info = model_info 
     49    def __init__(self): 
    5150        self._kernel = None 
     51        model_info = self._model_info 
    5252 
    5353        self.name = model_info['name'] 
Note: See TracChangeset for help on using the changeset viewer.