Changeset a7684e5 in sasmodels for sasmodels/sasview_model.py
- Timestamp:
- Aug 26, 2014 7:07:44 AM (10 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:
- ff7119b
- Parents:
- 13d86bc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/sasview_model.py
r32c160a ra7684e5 8 8 model = opencl_model(kernel_module, dtype=dtype) 9 9 def __init__(self, multfactor=1): 10 SasviewModel.__init__(self, self.kernel)11 attrs = dict(__init__=__init__ , kernel=model)10 SasviewModel.__init__(self, model) 11 attrs = dict(__init__=__init__) 12 12 ConstructedModel = type(model.info['name'], (SasviewModel,), attrs) 13 #class ConstructedModel(SasviewModel):14 # kernel = model15 # def __init__(self, multfactor=1):16 # SasviewModel.__init__(self, self.kernel)17 #ConstructedModel.__name__ = model.info['name']18 13 return ConstructedModel 19 14
Note: See TracChangeset
for help on using the changeset viewer.