Changeset 0a8759f in sasview for invariantview/perspectives/invariant
- Timestamp:
- Apr 23, 2010 11:34:54 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:
- 0fff338f
- Parents:
- 18d0bba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_panel.py
r18d0bba r0a8759f 207 207 self.volume_err_tcl.SetValue(format_number(dv)) 208 208 except: 209 self.volume_tcl.SetValue(format_number(None)) 210 self.volume_err_tcl.SetValue(format_number(None)) 209 211 msg= "Error occurred computing volume fraction: %s"%sys.exc_value 210 212 wx.PostEvent(self.parent, StatusEvent(status=msg, … … 223 225 self.surface_err_tcl.SetValue(format_number(ds)) 224 226 except: 227 self.surface_tcl.SetValue(format_number(None)) 228 self.surface_err_tcl.SetValue(format_number(None)) 225 229 msg = "Error occurred computing specific surface: %s"%sys.exc_value 226 230 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error", … … 232 236 try: 233 237 qstar_total, qstar_total_err = inv.get_qstar_with_error(extrapolation) 238 234 239 self.invariant_total_tcl.SetValue(format_number(qstar_total)) 235 240 self.invariant_total_err_tcl.SetValue(format_number(qstar_total_err)) … … 238 243 239 244 except: 245 self.inv_container.qstar_total = "Error" 246 self.inv_container.qstar_total_err = "Error" 247 self.invariant_total_tcl.SetValue(format_number(None)) 248 self.invariant_total_err_tcl.SetValue(format_number(None)) 240 249 msg= "Error occurred computing invariant using extrapolation: %s"%sys.exc_value 241 250 wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) … … 256 265 name="Low-Q extrapolation") 257 266 except: 267 self.inv_container.qstar_low = "ERROR" 268 self.inv_container.qstar_low_err = "ERROR" 269 self._manager.plot_theory(name="Low-Q extrapolation") 258 270 msg= "Error occurred computing low-Q invariant: %s"%sys.exc_value 259 271 wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) … … 275 287 name="High-Q extrapolation") 276 288 except: 289 self.inv_container.qstar_high = "ERROR" 290 self.inv_container.qstar_high_err = "ERROR" 291 self._manager.plot_theory(name="High-Q extrapolation") 277 292 msg= "Error occurred computing high-Q invariant: %s"%sys.exc_value 278 293 wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) … … 414 429 info="warning",type="stop")) 415 430 return 431 416 432 #Compute qstar extrapolated to low q range 417 433 self.get_low_qstar(inv=inv, npts_low=npts_low, low_q=low_q)
Note: See TracChangeset
for help on using the changeset viewer.