Changeset fb7180c in sasview for src/sans/fit/AbstractFitEngine.py
- Timestamp:
- May 7, 2014 6:50:18 PM (11 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:
- e544c84
- Parents:
- f121904
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/fit/AbstractFitEngine.py
r95d58d3 rfb7180c 428 428 429 429 sasmodel = model.model 430 if len(constraints) > 0: 431 for constraint in constraints: 432 name, value = constraint 433 try: 434 model.parameterset[str(name)].set(str(value)) 435 except: 436 msg = "Fit Engine: Error occurs when setting the constraint" 437 msg += " %s for parameter %s " % (value, name) 438 raise ValueError, msg 439 430 model.constraints = constraints 431 440 432 if len(pars) > 0: 441 433 temp = [] … … 610 602 def __init__(self, model=None, param_list=None, data=None): 611 603 self.calls = None 612 self.pars = []613 604 self.fitness = None 614 605 self.chisqr = None … … 621 612 self.residuals = [] 622 613 self.index = [] 623 self.parameters = None624 614 self.model = model 625 615 self.data = data
Note: See TracChangeset
for help on using the changeset viewer.