Ignore:
Timestamp:
Nov 14, 2017 6:04:41 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
fa81e94
Parents:
f1f3e6a
Message:

Fixes to the Invariant perspective

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Invariant/InvariantDetails.py

    rf1f3e6a r7c487846  
    8181        self.txtQDataErr.setText(self._model.item(WIDGETS.W_INVARIANT_ERR).text()) 
    8282 
     83        # Reset progress counters 
     84        self.progress_low_qstar = 0.0 
     85        self.progress_high_qstar = 0.0 
     86        self.progress_qstar = 100.0 
     87 
    8388        # Low-Q 
    8489        if self._model.item(WIDGETS.W_ENABLE_LOWQ).text() == "true": 
     
    147152        if self.progress_qstar == 'error': 
    148153            msg += 'Error occurred when computing invariant from data.\n ' 
    149         if self.progress_qstar > 100: 
    150             msg += "Invariant Q contribution is greater than 100% .\n" 
     154        try: 
     155            if float(self.progress_qstar) > 100: 
     156                msg += "Invariant Q contribution is greater than 100% .\n" 
     157        except ValueError: 
     158            # Text message, skip msg update 
     159            pass 
    151160 
    152161        if self.progress_low_qstar == 'error': 
Note: See TracChangeset for help on using the changeset viewer.