Changeset b171acd in sasmodels for sasmodels/sasview_model.py
- Timestamp:
- Jan 29, 2019 1:54:28 PM (5 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 4f4d3e3
- Parents:
- 15c80af
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/sasview_model.py
ra4f1a73 rb171acd 253 253 254 254 # Process multiplicity 255 control_pars = [p.id for p in model_info.parameters.kernel_parameters 256 if p.is_control] 257 control = control_pars[0] if control_pars else None 255 258 non_fittable = [] # type: List[str] 256 259 xlabel = model_info.profile_axes[0] if model_info.profile is not None else "" 257 260 variants = MultiplicityInfo(0, "", [], xlabel) 258 261 for p in model_info.parameters.kernel_parameters: 259 if p. name == model_info.control:262 if p.id == control: 260 263 non_fittable.append(p.name) 261 264 variants = MultiplicityInfo( … … 800 803 """ 801 804 if par.name not in self.params: 802 if par. name== self.multiplicity_info.control:805 if par.id == self.multiplicity_info.control: 803 806 return self.multiplicity, [self.multiplicity], [1.0] 804 807 else:
Note: See TracChangeset
for help on using the changeset viewer.