Changeset 28d070a in sasview for src/sas/qtgui/Perspectives/Fitting


Ignore:
Timestamp:
Aug 21, 2018 4:47:33 AM (6 years ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
c0de493
Parents:
b51c8fc
Message:

log an error when fitting fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FitThread.py

    r235d766 r28d070a  
    33import copy 
    44import traceback 
     5import logging 
    56 
    67from sas.sascalc.data_util.calcthread import CalcThread 
     8 
     9logger = logging.getLogger(__name__) 
    710 
    811def map_getattr(classInstance, classFunc, *args): 
     
    9396                self.handler.stop(msg=msg) 
    9497        except Exception as ex: 
     98            logger.error("Fitting failed: %s", traceback.format_exc()) 
    9599            # print "ERROR IN FIT THREAD: ", traceback.format_exc() 
    96100            if self.handler is not None: 
Note: See TracChangeset for help on using the changeset viewer.