Changeset 12cd4ec in sasview
- Timestamp:
- May 20, 2011 3:18:46 PM (14 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:
- 92697e3
- Parents:
- 823859a
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/AbstractFitEngine.py
rd5f0f5e3 r12cd4ec 472 472 self.curr_thread.isquit() 473 473 except: 474 raise FitAbort,"stop leastsqr optimizer" 474 self.handler.error("Fitting Terminated.") 475 raise FitAbort,"The LeastSqr Fit: terminated by the user." 476 475 477 return self.res 476 478 -
sansview/perspectives/fitting/console.py
r8b481a51 r12cd4ec 95 95 if self.isbetter: 96 96 self.result.print_summary() 97 message = " fit Error"97 message = "Fit Error:" 98 98 message = str(msg)+ " \n %s"%self.result.__str__() 99 99 wx.PostEvent(self.parent, StatusEvent(status=message, 100 100 info="error", type="stop")) 101 102 101 def finalize(self): 103 102 """ -
sansview/perspectives/fitting/fitpage.py
r8960479 r12cd4ec 1876 1876 self.Refresh() 1877 1877 #PostStatusEvent 1878 msg = "Fit completed!"1879 wx.PostEvent(self._manager.parent, StatusEvent(status=msg))1878 #msg = "Fit completed!dddd " 1879 #wx.PostEvent(self._manager.parent, StatusEvent(status=msg)) 1880 1880 1881 1881 def onPinholeSmear(self, event): -
sansview/perspectives/fitting/fitting.py
ra436b2e r12cd4ec 896 896 try: 897 897 if result == None: 898 self._update_fit_button(page_id) 898 899 msg= "Single Fitting did not converge!!!" 899 900 wx.PostEvent(self.parent, … … 910 911 info="warning", 911 912 type="stop")) 913 self._update_fit_button(page_id) 912 914 return 913 915 for uid in page_id: … … 924 926 param_name, result.pvec,result.stderr) 925 927 cpage._on_fit_complete() 926 928 msg = "Completed!" 929 wx.PostEvent(self.parent, StatusEvent(status=msg)) 927 930 except ValueError: 931 self._update_fit_button(page_id) 928 932 msg = "Single Fitting did not converge!!!" 929 933 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error", 930 934 type="stop")) 931 return 935 return 932 936 except: 937 self._update_fit_button(page_id) 938 msg = "Single Fit completed but Following" 939 msg += " error occurred:%s" % sys.exc_value 940 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error", 941 type="stop")) 933 942 raise 934 #msg = "Single Fit completed but Following"935 #msg += " error occurred:%s" % sys.exc_value936 #wx.PostEvent(self.parent, StatusEvent(status=msg, info="error",937 # type="stop"))938 943 return 939 944 … … 953 958 msg = "" 954 959 if result == None: 960 self._update_fit_button(page_id) 955 961 msg= "Complex Fitting did not converge!!!" 956 962 wx.PostEvent(self.parent, StatusEvent(status=msg, … … 960 966 numpy.any(result.pvec == None) or not \ 961 967 numpy.all(numpy.isfinite(result.pvec)): 968 self._update_fit_button(page_id) 962 969 msg= "Simultaneous Fitting did not converge!!!" 963 970 wx.PostEvent(self.parent, StatusEvent(status=msg,type="stop")) … … 987 994 small_out,small_cov) 988 995 cpage._on_fit_complete() 989 996 msg = "Fit completed!" 997 wx.PostEvent(self.parent, StatusEvent(status=msg)) 990 998 except Exception: 999 self._update_fit_button(page_id) 991 1000 msg = "Complex Fitting did not converge!!!" 992 1001 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error", … … 995 1004 996 1005 except: 1006 self._update_fit_button(page_id) 997 1007 msg = "Simultaneous Fit completed" 998 1008 msg += " but Following error occurred:%s" % sys.exc_value 999 1009 wx.PostEvent(self.parent, StatusEvent(status=msg, type="stop")) 1000 1010 1011 def _update_fit_button(self, page_id): 1012 """ 1013 Update Fit button when fit stopped 1014 1015 : parameter page_id: fitpage where the button is 1016 """ 1017 for uid in page_id: 1018 page = self.fit_panel.get_page_by_id(uid) 1019 page._on_fit_complete() 1020 1001 1021 def _on_show_panel(self, event): 1002 1022 """
Note: See TracChangeset
for help on using the changeset viewer.