Changeset 33844bf in sasview for src/sas/sasgui/perspectives/fitting/fitting.py
- Timestamp:
- Dec 20, 2016 3:07:27 AM (8 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitting.py
r8f02f7f r33844bf 876 876 enable1D=enable1D, enable2D=enable2D, 877 877 qmin=qmin, qmax=qmax, weight=weight) 878 self._mac_sleep(0.2)879 878 880 879 def _mac_sleep(self, sec=0.2): … … 1533 1532 for uid in page_id: 1534 1533 res = result[index] 1534 fit_msg = res.mesg 1535 1535 if res.fitness is None or \ 1536 1536 not numpy.isfinite(res.fitness) or \ 1537 1537 numpy.any(res.pvec == None) or \ 1538 1538 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!!!" 1542 1540 wx.CallAfter(self._update_fit_button, page_id) 1543 1541 else: … … 1562 1560 wx.CallAfter(cpage._on_fit_complete) 1563 1561 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." 1567 1563 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) 1571 1568 1572 1569 except: … … 1978 1975 ## May need rethinking 1979 1976 ## 1980 ## -PDB August 12, 2014 1977 ## -PDB August 12, 2014 1981 1978 while self.calc_1D.isrunning(): 1982 1979 time.sleep(0.1)
Note: See TracChangeset
for help on using the changeset viewer.