Changeset 41661a0 in sasview for fittingview/src/sans/perspectives/fitting/fitproblem.py
- Timestamp:
- Oct 5, 2011 1:14:09 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:
- 634ca14
- Parents:
- 0f17dd9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitproblem.py
rf64a4b7 r41661a0 135 135 Get graph_id 136 136 """ 137 def set_result(self, result): 138 """ 139 """ 140 141 def get_result(self): 142 """ 143 get result 144 """ 145 137 146 138 147 class FitProblemDictionary(FitProblemComponent, dict): … … 419 428 return self.itervalues() 420 429 421 def set_result(self, batch_inputs, batch_outputs): 430 def set_result(self, result, fid): 431 """ 432 """ 433 if fid in self.iterkeys(): 434 self[fid].set_result(result) 435 436 def set_batch_result(self, batch_inputs, batch_outputs): 422 437 """ 423 438 set a list of result … … 425 440 self.batch_inputs = batch_inputs 426 441 self.batch_outputs = batch_outputs 427 428 def get_result(self): 442 443 def get_result(self, fid): 444 """ 445 get result 446 """ 447 if fid in self.iterkeys(): 448 return self[fid].get_result() 449 450 def get_batch_result(self): 429 451 """ 430 452 get result … … 689 711 """ 690 712 return self.graph_id 691 713 714 def set_result(self, result): 715 """ 716 """ 717 self.result = result 718 719 def get_result(self): 720 """ 721 get result 722 """ 723 return self.result
Note: See TracChangeset
for help on using the changeset viewer.