Changeset 50ec515 in sasmodels for sasmodels/sasview_model.py
- Timestamp:
- Aug 5, 2016 6:35:30 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:
- e187b25
- Parents:
- e7fe459
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/sasview_model.py
re7fe459 r50ec515 38 38 39 39 # TODO: separate x_axis_label from multiplicity info 40 # The profile x-axis label belongs with the profile generating function41 40 MultiplicityInfo = collections.namedtuple( 42 41 'MultiplicityInfo', … … 141 140 p.name, p.choices, xlabel 142 141 ) 142 break 143 144 # Only a single drop-down list parameter available 145 fun_list = [] 146 for p in model_info.parameters.kernel_parameters: 147 if p.choices: 148 fun_list = p.choices 149 if p.length > 1: 150 non_fittable.extend(p.id+str(k) for k in range(1, p.length+1)) 143 151 break 144 152 … … 173 181 attrs['fixed'] = tuple(fixed) 174 182 attrs['non_fittable'] = tuple(non_fittable) 183 attrs['fun_list'] = tuple(fun_list) 175 184 176 185 return attrs
Note: See TracChangeset
for help on using the changeset viewer.