Changeset f304194 in sasview for sansview/perspectives/fitting
- Timestamp:
- Apr 12, 2010 11:05:14 AM (15 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:
- e2289b4
- Parents:
- db10f97
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
r6747217 rf304194 459 459 except: 460 460 msg= "%s error: %s" % (engineType,sys.exc_value) 461 wx.PostEvent(self.parent, StatusEvent(status= msg )) 461 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error", 462 type="stop")) 462 463 return 463 464 … … 500 501 except: 501 502 msg= "%s error: %s" % (engineType,sys.exc_value) 502 wx.PostEvent(self.parent, StatusEvent(status= msg ,type="stop")) 503 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error", 504 type="stop")) 503 505 return 504 506 … … 607 609 self.page_finder[page].add_fit_data(data) 608 610 609 wx.PostEvent(self.parent, StatusEvent(status="Page Created")) 611 wx.PostEvent(self.parent, StatusEvent(status="Page Created", 612 info="info")) 610 613 else: 611 wx.PostEvent(self.parent, StatusEvent(status="Page was already Created")) 614 msg = "Page was already Created" 615 wx.PostEvent(self.parent, StatusEvent(status=msg, info="warning")) 612 616 except: 613 raise 614 #wx.PostEvent(self.parent, StatusEvent(status="Creating Fit page: %s"\ 615 #%sys.exc_value)) 617 msg = "Creating Fit page: %s"%sys.exc_value 618 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error")) 616 619 return 617 620 … … 758 761 if result ==None: 759 762 msg= "Simple Fitting Stop !!!" 760 wx.PostEvent(self.parent, StatusEvent(status=msg,type="stop")) 763 wx.PostEvent(self.parent, StatusEvent(status=msg,info="warning", 764 type="stop")) 761 765 return 762 766 if not numpy.isfinite(result.fitness) or numpy.any(result.pvec ==None )or not numpy.all(numpy.isfinite(result.pvec) ): … … 777 781 except: 778 782 msg= "Single Fit completed but Following error occurred:%s"% sys.exc_value 779 wx.PostEvent(self.parent, StatusEvent(status=msg,type="stop")) 783 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error", 784 type="stop")) 780 785 return 781 786
Note: See TracChangeset
for help on using the changeset viewer.