Changeset 81ec7c8 in sasmodels for sasmodels/sasview_model.py
- Timestamp:
- Apr 13, 2016 9:12:22 AM (8 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, 62cf915
- Parents:
- a936688
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/sasview_model.py
ra936688 r81ec7c8 91 91 attrs = _generate_model_attributes(model_info) 92 92 attrs['__init__'] = __init__ 93 ConstructedModel = type(model_info[' name'], (SasviewModel,), attrs)93 ConstructedModel = type(model_info['id'], (SasviewModel,), attrs) 94 94 return ConstructedModel 95 95 … … 107 107 attrs['_model_info'] = model_info 108 108 attrs['name'] = model_info['name'] 109 attrs['id'] = model_info['id'] 109 110 attrs['description'] = model_info['description'] 110 111 attrs['category'] = model_info['category']
Note: See TracChangeset
for help on using the changeset viewer.