Changeset cb4ef58 in sasview for src/sas/sascalc/fit
- Timestamp:
- Apr 13, 2016 9:23:07 AM (9 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 16b769b
- Parents:
- fa4ea80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/fit/MultiplicationModel.py
r08959b8 rcb4ef58 1 import copy 2 3 import numpy 1 4 2 5 from sas.sascalc.calculator.BaseComponent import BaseComponent 3 #import numpy, math 4 import copy 5 from sas.sascalc.fit.pluginmodel import Model1DPlugin 6 6 7 class MultiplicationModel(BaseComponent): 7 8 r""" … … 47 48 ## Parameter details [units, min, max] 48 49 self._set_details() 49 self.details['scale_factor'] = ['', None, None]50 self.details['scale_factor'] = ['', 0.0, numpy.inf] 50 51 51 52 #list of parameter that can be fitted … … 75 76 self.multiplicity_info = p_model.multiplicity_info 76 77 self.fun_list = p_model.fun_list 78 self.is_multiplicity_model = True 77 79 except: 78 80 pass 79 81 else: 80 self.multiplicity_info = [] 82 self.is_multiplicity_model = False 83 self.multiplicity_info = [0] 81 84 82 85 def _clone(self, obj):
Note: See TracChangeset
for help on using the changeset viewer.