Changeset 0a8759f in sasview for invariantview


Ignore:
Timestamp:
Apr 23, 2010 11:34:54 AM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

display error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/invariant_panel.py

    r18d0bba r0a8759f  
    207207                self.volume_err_tcl.SetValue(format_number(dv)) 
    208208            except: 
     209                self.volume_tcl.SetValue(format_number(None)) 
     210                self.volume_err_tcl.SetValue(format_number(None)) 
    209211                msg= "Error occurred computing volume fraction: %s"%sys.exc_value 
    210212                wx.PostEvent(self.parent, StatusEvent(status=msg, 
     
    223225                self.surface_err_tcl.SetValue(format_number(ds)) 
    224226            except: 
     227                self.surface_tcl.SetValue(format_number(None)) 
     228                self.surface_err_tcl.SetValue(format_number(None)) 
    225229                msg = "Error occurred computing specific surface: %s"%sys.exc_value 
    226230                wx.PostEvent(self.parent, StatusEvent(status=msg, info="error", 
     
    232236        try: 
    233237            qstar_total, qstar_total_err = inv.get_qstar_with_error(extrapolation) 
     238             
    234239            self.invariant_total_tcl.SetValue(format_number(qstar_total)) 
    235240            self.invariant_total_err_tcl.SetValue(format_number(qstar_total_err)) 
     
    238243          
    239244        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)) 
    240249            msg= "Error occurred computing invariant using extrapolation: %s"%sys.exc_value 
    241250            wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop"))   
     
    256265                                           name="Low-Q extrapolation") 
    257266            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") 
    258270                msg= "Error occurred computing low-Q invariant: %s"%sys.exc_value 
    259271                wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) 
     
    275287                                           name="High-Q extrapolation") 
    276288            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") 
    277292                msg= "Error occurred computing high-Q invariant: %s"%sys.exc_value 
    278293                wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) 
     
    414429                                                  info="warning",type="stop")) 
    415430            return 
     431        
    416432        #Compute qstar extrapolated to low q range  
    417433        self.get_low_qstar(inv=inv, npts_low=npts_low, low_q=low_q) 
Note: See TracChangeset for help on using the changeset viewer.