Changeset 986da97 in sasview for fittingview/src
- Timestamp:
- Jun 28, 2012 4:53:08 PM (12 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:
- 83b81b8
- Parents:
- 9c30b8c
- Location:
- fittingview/src/sans/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/console.py
rafac721 r986da97 102 102 wx.PostEvent(self.parent, StatusEvent(status=message, 103 103 info="error", type="stop")) 104 def stop(self, msg): 105 """ 106 Post event msg and stop 107 """ 108 if self.isbetter: 109 #self.result.print_summary() 110 self.update_fit() 111 112 message = str(msg) + " \n %s \n" % self.result.__str__() 113 wx.PostEvent(self.parent, StatusEvent(status=message, 114 info="info", type="stop")) 115 104 116 def finalize(self): 105 117 """ -
fittingview/src/sans/perspectives/fitting/fit_thread.py
r940aca7 r986da97 100 100 101 101 if self.handler is not None: 102 self.handler. error(msg=msg)102 self.handler.stop(msg=msg) 103 103 except: 104 104 if self.handler is not None: -
fittingview/src/sans/perspectives/fitting/fitting.py
r743f480 r986da97 1033 1033 current_page_id = page_id 1034 1034 value.clear_model_param() 1035 except KeyboardInterrupt: 1036 flag = True 1037 msg = "Fitting terminated" 1038 wx.PostEvent(self.parent, StatusEvent(status=msg, info="info", 1039 type="stop")) 1040 return flag 1035 1041 except: 1036 1042 flag = False … … 1474 1480 batch_inputs=batch_inputs) 1475 1481 1476 wx.PostEvent(self.parent, StatusEvent(status=msg, error=" error",1482 wx.PostEvent(self.parent, StatusEvent(status=msg, error="info", 1477 1483 type="stop")) 1478 1484 # Remove parameters that are not shown … … 1600 1606 index += 1 1601 1607 wx.CallAfter(cpage._on_fit_complete) 1608 except KeyboardInterrupt: 1609 msg = "Singular point: Fitting Stoped." 1610 wx.PostEvent(self.parent, StatusEvent(status=msg, 1611 info="info", 1612 type="stop")) 1602 1613 except: 1603 1614 msg = "Singular point: Fitting Error occurred." … … 1607 1618 1608 1619 except: 1609 msg = "Fit completed but Following"1620 msg = "Fit completed 33but Following" 1610 1621 msg += " error occurred:%s" % sys.exc_value 1611 1622 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error",
Note: See TracChangeset
for help on using the changeset viewer.