Changeset 986da97 in sasview
- Timestamp:
- Jun 28, 2012 4:53:08 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:
- 83b81b8
- Parents:
- 9c30b8c
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/model_editor.py
r30bc3045 r986da97 773 773 info = 'Error' 774 774 color = 'red' 775 wx.MessageBox(msg, info)775 #wx.MessageBox(msg, info) 776 776 777 777 self._msg_box.SetLabel(msg) -
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", -
park_integration/src/sans/fit/AbstractFitEngine.py
r1f9f3c8a r986da97 486 486 self.curr_thread.isquit() 487 487 except: 488 msg = "Fitting: Terminated... Note: Forcing to stop "489 msg += "fitting may cause a 'Functor error message' "490 msg += "being recorded in the log file....."491 self.handler.error(msg)488 #msg = "Fitting: Terminated... Note: Forcing to stop " 489 #msg += "fitting may cause a 'Functor error message' " 490 #msg += "being recorded in the log file....." 491 #self.handler.stop(msg) 492 492 raise 493 493 -
park_integration/src/sans/fit/ScipyFitting.py
r2d0756a5 r986da97 114 114 if handler is not None: 115 115 msg = "Fitting: Terminated!!!" 116 handler. error(msg)116 handler.stop(msg) 117 117 raise KeyboardInterrupt, msg 118 118 else: -
sansguiframe/src/sans/guiframe/gui_statusbar.py
r3fc01c5 r986da97 228 228 """ 229 229 wxStatusB.PopStatusText(self, field=MSG_POSITION) 230 230 231 231 def PushStatusText(self, *args, **kwds): 232 232 """ … … 315 315 size = (height,height)) 316 316 self.bitmap_bt_warning.SetBitmapLabel(icon_bmp) 317 e_msg = "Error(s) Occurred:\n" 318 e_msg += event.status 319 wx.MessageBox(e_msg, style=wx.ICON_ERROR) 317 320 else: 318 321 icon_bmp = wx.ArtProvider.GetBitmap(wx.ART_INFORMATION, -
sansguiframe/src/sans/guiframe/local_perspectives/data_loader/data_loader.py
rc151afc r986da97 177 177 log_msg = '' 178 178 output = {} 179 any_error = False 179 180 error_message = "" 180 info = "info"181 181 for p_file in path: 182 info = "info" 182 183 basename = os.path.basename(p_file) 183 184 root, extension = os.path.splitext(basename) 184 185 if extension.lower() in EXTENSIONS: 186 any_error = True 185 187 log_msg = "Data Loader cannot " 186 188 log_msg += "load: %s\n" % str(p_file) … … 203 205 self.load_update(output=output, message=message, info=info) 204 206 except: 205 error = "Error while loading Data: %s\n" % str(p_file) 206 error += str(sys.exc_value) + "\n" 207 error_message = "The data file you selected could not be loaded.\n" 208 error_message += "Make sure the content of your file" 209 error_message += " is properly formatted.\n\n" 210 error_message += "When contacting the DANSE team, mention the" 211 error_message += " following:\n%s" % str(error) 212 info = "error" 213 self.load_update(output=output, message=error_message, 207 any_error = True 208 if error_message == "": 209 error = "Error: " + str(sys.exc_value) + "\n" 210 error += "while loading Data: \n%s\n" % str(p_file) 211 error_message = "The data file you selected could not be loaded.\n" 212 error_message += "Make sure the content of your file" 213 error_message += " is properly formatted.\n\n" 214 error_message += "When contacting the DANSE team, mention the" 215 error_message += " following:\n%s" % str(error) 216 else: 217 error_message += "%s\n"% str(p_file) 218 info = "error" 219 self.load_update(output=output, message=error_message, 214 220 info=info) 215 221 216 222 message = "Loading Data Complete! " 217 223 message += log_msg 218 if error_message != "":224 if error_message != "": 219 225 info = 'error' 220 226 self.load_complete(output=output, error_message=error_message, … … 226 232 """ 227 233 if message != "": 228 wx.PostEvent(self.parent, StatusEvent(status=message, info= info,234 wx.PostEvent(self.parent, StatusEvent(status=message, info='info', 229 235 type="progress")) 230 236 def load_complete(self, output, message="", error_message="", path=None, … … 236 242 info=info, 237 243 type="stop")) 238 if error_message != "":239 self.load_error(error_message)244 #if error_message != "": 245 # self.load_error(error_message) 240 246 self.parent.add_data(data_list=output) 241 247
Note: See TracChangeset
for help on using the changeset viewer.