Ignore:
Timestamp:
Apr 7, 2010 5:01:32 PM (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:
eed601e
Parents:
da3f24c
Message:

rpitn the correct message on details panel

File:
1 edited

Legend:

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

    rf75ea4a r3fab6ef  
    8484        """ 
    8585        #warning to the user when the extrapolated invariant is greater than %5 
     86        msg = '' 
    8687        if self.qstar_low_percent >= 0.05: 
    8788            self.existing_warning = True 
    88             self.warning_msg += "Extrapolated contribution at Low Q is higher " 
    89             self.warning_msg += "than 5% of the invariant.\n" 
     89            msg += "Extrapolated contribution at Low Q is higher " 
     90            msg += "than 5% of the invariant.\n" 
    9091        if self.qstar_high_percent >= 0.05: 
    9192            self.existing_warning = True 
    92             self.warning_msg += "Extrapolated contribution at High Q is higher " 
    93             self.warning_msg += "than 5% of the invariant.\n" 
     93            msg += "Extrapolated contribution at High Q is higher " 
     94            msg += "than 5% of the invariant.\n" 
    9495        if self.qstar_low_percent + self.qstar_high_percent >= 0.05: 
    9596            self.existing_warning = True 
    96             self.warning_msg += "The sum of all extrapolated contributions is higher " 
    97             self.warning_msg += "than 5% of the invariant.\n" 
     97            msg += "The sum of all extrapolated contributions is higher " 
     98            msg += "than 5% of the invariant.\n" 
    9899             
    99100        if self.existing_warning: 
     101            self.warning_msg = '' 
     102            self.warning_msg += msg  
    100103            self.warning_msg += "The calculations are likely to be unreliable!\n" 
    101104        else: 
     
    257260        """ 
    258261        #Warning [string] 
    259         self.warning_msg_txt = wx.StaticText(self, -1,self.warning_msg)   
     262        self.warning_msg_txt = wx.StaticText(self, -1, self.warning_msg)   
    260263        if self.qstar_container.existing_warning: 
    261264            self.warning_msg_txt.SetForegroundColour('red')  
Note: See TracChangeset for help on using the changeset viewer.