Changeset 437e639 in sasview for invariantview


Ignore:
Timestamp:
Mar 18, 2010 10:28:50 AM (15 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:
f43827cc
Parents:
471b598
Message:

error check added for txtcrtl value

File:
1 edited

Legend:

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

    r471b598 r437e639  
    335335            compute invariant  
    336336        """ 
     337        msg= "" 
     338        wx.PostEvent(self.parent, StatusEvent(status= msg)) 
    337339        if self._data is None: 
    338340            return 
     
    353355                                            background=background, 
    354356                                            scale=scale) 
    355         inv, npts_low = self.set_extrapolation_low(inv=inv, low_q=low_q) 
    356         inv, npts_high = self.set_extrapolation_high(inv=inv, high_q=high_q) 
     357        try: 
     358            inv, npts_low = self.set_extrapolation_low(inv=inv, low_q=low_q) 
     359            inv, npts_high = self.set_extrapolation_high(inv=inv, high_q=high_q) 
     360        except: 
     361            msg= "Error occurred computing invariant: %s"%sys.exc_value 
     362            wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) 
     363            return 
    357364        #check the type of extrapolation 
    358365        extrapolation = self.get_extrapolation_type(low_q=low_q, high_q=high_q) 
     
    521528            Draw widgets related to extrapolation at low q range 
    522529        """ 
    523         self.enable_low_cbox = wx.CheckBox(self, -1, "Extrapolate Low Q") 
     530        self.enable_low_cbox = wx.CheckBox(self, -1, "Enable Extrapolate Low Q") 
     531        self.enable_low_cbox.SetForegroundColour('red') 
    524532        self.enable_low_cbox.SetValue(False) 
    525533        self.fit_low_cbox = wx.CheckBox(self, -1, "Check to Fit Power") 
     
    579587            Draw widgets related to extrapolation at high q range 
    580588        """ 
    581         self.enable_high_cbox = wx.CheckBox(self, -1, "Extrapolate high-Q") 
     589        self.enable_high_cbox = wx.CheckBox(self, -1, "Enable Extrapolate high-Q") 
     590        self.enable_high_cbox.SetForegroundColour('red') 
    582591        self.enable_high_cbox.SetValue(False) 
    583592        self.fit_high_cbox = wx.CheckBox(self, -1, "Check to Fit Power") 
Note: See TracChangeset for help on using the changeset viewer.