Changeset 31469d50 in sasview
- Timestamp:
- Oct 5, 2011 11:00:46 AM (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:
- 0f17dd9
- Parents:
- 706667b
- Location:
- fittingview/src/sans/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitting.py
r34a60dd r31469d50 697 697 :param uid: id related to the panel currently calling this fit function. 698 698 """ 699 flag = True 699 700 ## count the number of fitproblem schedule to fit 700 701 fitproblem_count = 0 … … 702 703 if value.get_scheduled() == 1: 703 704 fitproblem_count += 1 704 ## if simultaneous fit change automatically the engine to park 705 if fitproblem_count > 1: 706 self._on_change_engine(engine='park') 705 707 706 self.fitproblem_count = fitproblem_count 708 707 if self._fit_engine == "park": … … 749 748 is2d = page._is_2D()) 750 749 templist = page.get_param_list() 750 flag = page._update_paramv_on_fit() 751 if not flag: 752 msg = "Fitting range or parameter values are" 753 msg += " invalid in %s"% \ 754 page.window_caption 755 wx.PostEvent(page.parent.parent, 756 StatusEvent(status= msg, info="error", 757 type="stop")) 758 return flag 751 759 for element in templist: 752 760 name = str(element[1]) … … 777 785 value.clear_model_param() 778 786 except: 779 raise787 flag = False 780 788 msg= "%s error: %s" % (engineType, sys.exc_value) 781 789 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error", 782 790 type="stop")) 783 return 791 return flag 784 792 ## If a thread is already started, stop it 785 793 #if self.calc_fit!= None and self.calc_fit.isrunning(): … … 820 828 821 829 self.ready_fit(calc_fit=calc_fit) 822 830 return flag 831 823 832 def ready_fit(self, calc_fit): 824 833 """ -
fittingview/src/sans/perspectives/fitting/simfitpage.py
r284f6fe r31469d50 148 148 self.manager.schedule_for_fit(value=1, uid=item[2]) 149 149 try: 150 self.manager.onFit(uid=self.uid) 150 if not self.manager.onFit(uid=self.uid): 151 return 151 152 except: 152 153 msg= "Select at least one parameter to fit in the FitPages." 153 154 wx.PostEvent(self.parent.parent, StatusEvent(status=msg)) 154 155 else: 155 msg= "Select at least one model to fit "156 msg= "Select at least one model check box to fit " 156 157 wx.PostEvent(self.parent.parent, StatusEvent(status=msg)) 157 158
Note: See TracChangeset
for help on using the changeset viewer.