Changes in / [934f906:292fe08] in sasmodels


Ignore:
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.