Ignore:
Timestamp:
Dec 20, 2016 5:07:27 AM (7 years ago)
Author:
wojciech
Children:
ebaaf05
Parents:
4139147 (diff), 06a4306 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged with master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/fitting.py

    r8f02f7f r33844bf  
    876876                enable1D=enable1D, enable2D=enable2D, 
    877877                qmin=qmin, qmax=qmax, weight=weight) 
    878             self._mac_sleep(0.2) 
    879878 
    880879    def _mac_sleep(self, sec=0.2): 
     
    15331532            for uid in page_id: 
    15341533                res = result[index] 
     1534                fit_msg = res.mesg 
    15351535                if res.fitness is None or \ 
    15361536                    not numpy.isfinite(res.fitness) or \ 
    15371537                    numpy.any(res.pvec == None) or \ 
    15381538                    not numpy.all(numpy.isfinite(res.pvec)): 
    1539                     msg = "Fitting did not converge!!!" 
    1540                     evt = StatusEvent(status=msg, info="warning", type="stop") 
    1541                     wx.PostEvent(self.parent, evt) 
     1539                    fit_msg += "\nFitting did not converge!!!" 
    15421540                    wx.CallAfter(self._update_fit_button, page_id) 
    15431541                else: 
     
    15621560                        wx.CallAfter(cpage._on_fit_complete) 
    15631561                    except KeyboardInterrupt: 
    1564                         msg = "Singular point: Fitting Stoped." 
    1565                         evt = StatusEvent(status=msg, info="info", type="stop") 
    1566                         wx.PostEvent(self.parent, evt) 
     1562                        fit_msg += "\nSingular point: Fitting stopped." 
    15671563                    except: 
    1568                         msg = "Singular point: Fitting Error occurred." 
    1569                         evt = StatusEvent(status=msg, info="error", type="stop") 
    1570                         wx.PostEvent(self.parent, evt) 
     1564                        fit_msg += "\nSingular point: Fitting error occurred." 
     1565                if fit_msg: 
     1566                   evt = StatusEvent(status=fit_msg, info="warning", type="stop") 
     1567                   wx.PostEvent(self.parent, evt) 
    15711568 
    15721569        except: 
     
    19781975                ## May need rethinking   
    19791976                ## 
    1980                 ##    -PDB August 12, 2014                   
     1977                ##    -PDB August 12, 2014 
    19811978                while self.calc_1D.isrunning(): 
    19821979                    time.sleep(0.1) 
Note: See TracChangeset for help on using the changeset viewer.