Changeset aed7c57 in sasview
- Timestamp:
- Mar 26, 2009 5:51:22 PM (16 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:
- 24cab5d
- Parents:
- 1f57dfd
- Location:
- park_integration
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/AbstractFitEngine.py
r20d30e9 raed7c57 248 248 249 249 # Smear theory data 250 250 251 if self.smearer is not None: 251 252 fx = self.smearer(fx) … … 446 447 raise ValueError, "AbstractFitEngine: Specify parameters to fit" 447 448 else: 449 temp=[] 448 450 for item in pars: 449 451 if item in model.model.getParamList(): 452 temp.append(item) 450 453 self.paramList.append(item) 451 454 else: … … 456 459 if self.fitArrangeDict.has_key(Uid): 457 460 self.fitArrangeDict[Uid].set_model(model) 461 self.fitArrangeDict[Uid].pars= pars 458 462 else: 459 463 #no fitArrange object has been create with this Uid 460 464 fitproblem = FitArrange() 461 465 fitproblem.set_model(model) 466 fitproblem.pars= pars 462 467 self.fitArrangeDict[Uid] = fitproblem 468 463 469 else: 464 470 raise ValueError, "park_integration:missing parameters" … … 530 536 self.model = None 531 537 self.dList =[] 538 self.pars=[] 532 539 #self.selected is zero when this fit problem is not schedule to fit 533 540 #self.selected is 1 when schedule to fit -
park_integration/ParkFitting.py
rf6a9248 raed7c57 69 69 parkmodel = item.get_model() 70 70 for p in parkmodel.parameterset: 71 if p._getname()in self.paramList and not p.iscomputed(): 72 p.status = 'fitted' # make it a fitted parameter 73 #iscomputed paramter with string inside 74 71 72 if p.status!= 'computed': 73 if p._getname()in item.pars: 74 75 p.status = 'fitted' # make it a fitted parameter 76 #iscomputed paramter with string inside 77 else: 78 p.status= 'fixed' 79 75 80 i+=1 76 81 Ldata=item.get_data() … … 107 112 fitter = FitMC(localfit=localfit, start_points=1) 108 113 if handler == None: 109 #print "no handler"110 114 handler= fitresult.ConsoleUpdate(improvement_delta=0.1) 111 #print "park handler", handler 112 115 113 116 114 117 result = fit.fit(self.problem,
Note: See TracChangeset
for help on using the changeset viewer.