Changeset 3fab6ef in sasview
- Timestamp:
- Apr 7, 2010 5:01:32 PM (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:
- eed601e
- Parents:
- da3f24c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_details.py
rf75ea4a r3fab6ef 84 84 """ 85 85 #warning to the user when the extrapolated invariant is greater than %5 86 msg = '' 86 87 if self.qstar_low_percent >= 0.05: 87 88 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" 90 91 if self.qstar_high_percent >= 0.05: 91 92 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" 94 95 if self.qstar_low_percent + self.qstar_high_percent >= 0.05: 95 96 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" 98 99 99 100 if self.existing_warning: 101 self.warning_msg = '' 102 self.warning_msg += msg 100 103 self.warning_msg += "The calculations are likely to be unreliable!\n" 101 104 else: … … 257 260 """ 258 261 #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) 260 263 if self.qstar_container.existing_warning: 261 264 self.warning_msg_txt.SetForegroundColour('red')
Note: See TracChangeset
for help on using the changeset viewer.