Changes in / [1cf4a130:e5cbbce] in sasview
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitting.py
r82373f5 r7432acb 1733 1733 """ 1734 1734 try: 1735 number_finite = np.count_nonzero(np.isfinite(y))1736 if not number_finite:1737 logger.error("Using the present parameters the model does not return any finite value. ")1738 wx.PostEvent(self.parent, StatusEvent(status = "Computing Error: %s" %1739 str("Model did not return any finite value."), info="error"))1740 return1741 1735 np.nan_to_num(y) 1742 1736 new_plot = self.create_theory_1D(x, y, page_id, model, data, state, … … 1795 1789 index=index, weight=weight) 1796 1790 1797 msg = "Computation completed!" 1798 if number_finite != y.size: 1799 msg += ' PROBLEM: For some Q values the model returns non finite intensities!' 1800 logger.error("For some Q values the model returns non finite intensities.") 1801 1791 msg = "Computation completed!" 1802 1792 wx.PostEvent(self.parent, StatusEvent(status=msg, type="stop")) 1803 1804 1793 except: 1805 1794 raise … … 1828 1817 that can be plot. 1829 1818 """ 1830 number_finite = np.count_nonzero(np.isfinite(image))1831 if not number_finite:1832 logger.error("Using the present parameters the model does not return any finite value. ")1833 wx.PostEvent(self.parent, StatusEvent(status = "Computing Error: %s" %1834 str("Model did not return any finite value."), info="error"))1835 return1836 1819 np.nan_to_num(image) 1837 1820 new_plot = Data2D(image=image, err_image=data.err_data) … … 1893 1876 index=index, weight=weight) 1894 1877 msg = "Computation completed!" 1895 if number_finite != image.size:1896 msg += ' PROBLEM: For some Qx,Qy values the model returns non finite intensities!'1897 logger.error("For some Qx,Qy values the model returns non finite intensities.")1898 1878 wx.PostEvent(self.parent, StatusEvent(status=msg, type="stop")) 1899 1879 -
src/sas/sasgui/perspectives/fitting/models.py
r463e7ffc r463e7ffc 154 154 try: 155 155 import compileall 156 compileall.compile_dir(dir=dir, ddir=dir, force= 0,156 compileall.compile_dir(dir=dir, ddir=dir, force=1, 157 157 quiet=report_problem) 158 158 except:
Note: See TracChangeset
for help on using the changeset viewer.