Changeset 06e7c26 in sasview
- Timestamp:
- Dec 2, 2011 12:03:01 PM (13 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:
- 7a7dbf4
- Parents:
- fa4885f9
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/simfitpage.py
rfa02d95 r06e7c26 156 156 wx.PostEvent(self._manager.parent, StatusEvent(status=\ 157 157 "Fitting: %s"%msg, info="info")) 158 if self.show_constraint.GetValue():158 if not self.batch_on and self.show_constraint.GetValue(): 159 159 if not self._set_constraint(): 160 160 return … … 232 232 if len(self.model_toFit)>=1: 233 233 self._store_model() 234 if self.show_constraint.GetValue() and\234 if not self.batch_on and self.show_constraint.GetValue() and\ 235 235 len(self.constraints_list)==0: 236 236 self._show_all_constraint() … … 734 734 self.hide_constraint.SetValue(True) 735 735 self.show_constraint.SetValue(False) 736 print "self.show_constraint", self.show_constraint 736 737 737 738 sizer_title.Add(wx.StaticText(self,-1," Model")) -
park_integration/src/sans/fit/AbstractFitEngine.py
rbd7a426 r06e7c26 557 557 #Dictionnary of fitArrange element (fit problems) 558 558 self.fit_arrange_dict = {} 559 self.fitter_id = None 559 560 560 561 def set_model(self, model, id, pars=[], constraints=[], data=None): … … 787 788 def __init__(self, model=None, param_list=None, data=None): 788 789 self.calls = None 790 self.pars = [] 789 791 self.fitness = None 790 792 self.chisqr = None … … 805 807 self.iterations = 0 806 808 self.inputs = [] 809 self.fitter_id = None 807 810 if self.model is not None and self.data is not None: 808 811 self.inputs = [(self.model, self.data)] -
park_integration/src/sans/fit/Fitting.py
rba7dceb r06e7c26 10 10 11 11 12 class Fit :12 class Fit(object): 13 13 """ 14 14 Wrap class that allows to select the fitting type.this class … … 31 31 #self._engine will contain an instance of ScipyFit or ParkFit 32 32 self._engine = None 33 self.fitter_id = None 33 34 self.set_engine(engine) 34 35 36 def __setattr__(self, name, value): 37 """ 38 set fitter_id and its engine at the same time 39 """ 40 if name == "fitter_id": 41 self.__dict__[name] = value 42 if hasattr(self, "_engine") and self._engine is not None: 43 self._engine.fitter_id = value 44 elif name == "_engine": 45 self.__dict__[name] = value 46 if hasattr(self, "fitter_id") and self.fitter_id is not None: 47 self._engine.fitter_id = self.fitter_id 48 else: 49 self.__dict__[name] = value 50 35 51 def set_engine(self, word): 36 52 """ -
park_integration/src/sans/fit/ParkFitting.py
r2605b879 r06e7c26 425 425 residuals, theory = m.fitness.residuals() 426 426 small_result = FResult(model=m.model, data=m.data.sans_data) 427 small_result.fitter_id = self.fitter_id 427 428 small_result.theory = theory 428 429 small_result.residuals = residuals -
park_integration/src/sans/fit/ScipyFitting.py
ree19117 r06e7c26 90 90 91 91 result = FResult(model=model, data=data, param_list=self.param_list) 92 result.pars = fitproblem[0].pars 93 result.fitter_id = self.fitter_id 92 94 if handler is not None: 93 95 handler.set_result(result=result)
Note: See TracChangeset
for help on using the changeset viewer.