Changeset 08376e7 in sasmodels
- Timestamp:
- Mar 18, 2016 11:36:02 AM (9 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/sasview_model.py
rde97440 r08376e7 38 38 model_info = core.load_model_info(model_name) 39 39 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) 42 42 ConstructedModel = type(model_info[namestyle], (SasviewModel,), attrs) 43 43 return ConstructedModel … … 47 47 Sasview wrapper for opencl/ctypes model. 48 48 """ 49 def __init__(self, model_info): 50 self._model_info = model_info 49 def __init__(self): 51 50 self._kernel = None 51 model_info = self._model_info 52 52 53 53 self.name = model_info['name']
Note: See TracChangeset
for help on using the changeset viewer.