Changeset e3f721e4 in sasview
- Timestamp:
- Apr 15, 2010 9:14:04 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:
- 8ea48a0
- Parents:
- e825f72
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_panel.py
re825f72 re3f721e4 73 73 if self.parent is not None: 74 74 msg = "" 75 wx.PostEvent(self.parent, StatusEvent(status=msg))75 wx.PostEvent(self.parent,StatusEvent(status=msg, info="info")) 76 76 self.SetupScrolling() 77 77 … … 81 81 """ 82 82 flag = False 83 self.hint_msg_txt.SetLabel('') 83 84 #edit the panel 84 85 if self._data is not None: … … 87 88 msg = "Invariant: one of your q-values is zero. Delete that entry before proceeding" 88 89 self.hint_msg_txt.SetLabel(msg) 89 wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) 90 self.hint_msg_txt.SetLabel('') 90 wx.PostEvent(self.parent, StatusEvent(status=msg, 91 info="warning", 92 type="stop")) 91 93 return flag 92 94 … … 196 198 except: 197 199 msg= "Error occurred computing volume fraction: %s"%sys.exc_value 198 wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) 200 wx.PostEvent(self.parent, StatusEvent(status=msg, 201 info="error", 202 type="stop")) 199 203 200 204 def get_surface(self, inv, contrast, porod_const, extrapolation): … … 210 214 except: 211 215 msg = "Error occurred computing specific surface: %s"%sys.exc_value 212 wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) 216 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error", 217 type="stop")) 213 218 214 219 def get_total_qstar(self, inv, extrapolation): … … 355 360 """ 356 361 msg= "" 357 wx.PostEvent(self.parent, StatusEvent(status= 362 wx.PostEvent(self.parent, StatusEvent(status=msg)) 358 363 if self._data is None or self.err_check_on_data(): 359 364 return … … 379 384 inv, npts_high = self.set_extrapolation_high(inv=inv, high_q=high_q) 380 385 except: 381 raise382 #msg= "Error occurred computing invariant: %s"%sys.exc_value383 #wx.PostEvent(self.parent, StatusEvent(status= msg,type="stop"))386 msg = "Error occurred computing invariant: %s"%sys.exc_value 387 wx.PostEvent(self.parent, StatusEvent(status=msg, 388 info="warning",type="stop")) 384 389 return 385 390 #check the type of extrapolation … … 391 396 except: 392 397 msg= "Error occurred computing invariant: %s"%sys.exc_value 393 wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) 398 wx.PostEvent(self.parent, StatusEvent(status=msg, 399 info="warning",type="stop")) 394 400 return 395 401 #Compute qstar extrapolated to low q range … … 408 414 except: 409 415 msg = "Error occurred computing invariant: %s"%sys.exc_value 410 wx.PostEvent(self.parent, StatusEvent(status=msg)) 416 wx.PostEvent(self.parent, StatusEvent(status=msg, 417 info="warning",type="stop")) 411 418 try: 412 419 self.get_surface(inv=inv, contrast=contrast, porod_const=porod_const, … … 414 421 except: 415 422 msg = "Error occurred computing invariant: %s"%sys.exc_value 416 wx.PostEvent(self.parent, StatusEvent(status= msg)) 423 wx.PostEvent(self.parent, StatusEvent(status=msg, 424 info="warning",type="stop")) 417 425 418 426 #compute percentage of each invariant
Note: See TracChangeset
for help on using the changeset viewer.