Changeset a2cc8b97 in sasview


Ignore:
Timestamp:
Aug 9, 2018 7:05:47 AM (2 months ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Pr_fixes, ESS_GUI_iss879, ESS_GUI_project_save
Children:
3ae9179, 685e0e3
Parents:
eb0d26c
git-author:
Piotr Rozyczko <rozyczko@…> (08/09/18 07:05:04)
git-committer:
Piotr Rozyczko <rozyczko@…> (08/09/18 07:05:47)
Message:

Bug fix: Bad fit should return a tuple

File:
1 edited

Legend:

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

    rb259485 ra2cc8b97  
    13261326        Send the finish message from calculate threads to main thread 
    13271327        """ 
     1328        if result is None: 
     1329            result = tuple() 
    13281330        self.batchFittingFinishedSignal.emit(result) 
    13291331 
     
    13351337        self.setFittingStopped() 
    13361338 
    1337         if result is None: 
     1339        if len(result) == 0: 
    13381340            msg = "Fitting failed." 
    13391341            self.communicate.statusBarUpdateSignal.emit(msg) 
     
    13951397        Send the finish message from calculate threads to main thread 
    13961398        """ 
     1399        if result is None: 
     1400            result = tuple() 
    13971401        self.fittingFinishedSignal.emit(result) 
    13981402 
     
    14051409        self.setFittingStopped() 
    14061410 
    1407         if result is None: 
     1411        if len(result) == 0: 
    14081412            msg = "Fitting failed." 
    14091413            self.communicate.statusBarUpdateSignal.emit(msg) 
Note: See TracChangeset for help on using the changeset viewer.