Changeset 3271e20 in sasmodels
- Timestamp:
- Feb 18, 2015 11:08:57 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:
- 6a729a2
- Parents:
- 87fce00
- Location:
- sasmodels
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/generate.py
ra503bfd r3271e20 722 722 parameters = COMMON_PARAMETERS + kernel_module.parameters, 723 723 source = getattr(kernel_module, 'source', []), 724 oldname = kernel_module.oldname, 725 oldpars = kernel_module.oldpars, 724 726 ) 725 727 # Fill in attributes which default to None -
sasmodels/sasview_model.py
r250fa25 r3271e20 42 42 SasviewModel.__init__(self, model) 43 43 attrs = dict(__init__=__init__) 44 ConstructedModel = type(model.info[' name'], (SasviewModel,), attrs)44 ConstructedModel = type(model.info['oldname'], (SasviewModel,), attrs) 45 45 return ConstructedModel 46 46 … … 54 54 55 55 self.name = model.info['name'] 56 self.oldname = model.info['oldname'] 56 57 self.description = model.info['description'] 57 58 self.category = None
Note: See TracChangeset
for help on using the changeset viewer.