Changes in / [658dd57:edba324] in sasview
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitting.py
ra1b8fee ra1b8fee 1735 1735 """ 1736 1736 try: 1737 number_finite = np.count_nonzero(np.isfinite(y)) 1738 if not number_finite: 1739 logger.error("Using the present parameters the model does not return any finite value. ") 1740 wx.PostEvent(self.parent, StatusEvent(status = "Computing Error: %s" % 1741 str("Model did not return any finite value."), info="error")) 1742 return 1737 1743 np.nan_to_num(y) 1738 1744 new_plot = self.create_theory_1D(x, y, page_id, model, data, state, … … 1791 1797 index=index, weight=weight) 1792 1798 1793 msg = "Computation completed!" 1799 msg = "Computation completed!" 1800 if number_finite != y.size: 1801 msg += ' PROBLEM: For some Q values the model returns non finite intensities!' 1802 logger.error("For some Q values the model returns non finite intensities.") 1803 1794 1804 wx.PostEvent(self.parent, StatusEvent(status=msg, type="stop")) 1805 1795 1806 except: 1796 1807 raise … … 1819 1830 that can be plot. 1820 1831 """ 1832 number_finite = np.count_nonzero(np.isfinite(image)) 1833 if not number_finite: 1834 logger.error("Using the present parameters the model does not return any finite value. ") 1835 wx.PostEvent(self.parent, StatusEvent(status = "Computing Error: %s" % 1836 str("Model did not return any finite value."), info="error")) 1837 return 1821 1838 np.nan_to_num(image) 1822 1839 new_plot = Data2D(image=image, err_image=data.err_data) … … 1878 1895 index=index, weight=weight) 1879 1896 msg = "Computation completed!" 1897 if number_finite != image.size: 1898 msg += ' PROBLEM: For some Qx,Qy values the model returns non finite intensities!' 1899 logger.error("For some Qx,Qy values the model returns non finite intensities.") 1880 1900 wx.PostEvent(self.parent, StatusEvent(status=msg, type="stop")) 1881 1901 -
src/sas/sasgui/perspectives/fitting/models.py
ra1b8fee ra1b8fee 156 156 try: 157 157 import compileall 158 compileall.compile_dir(dir=dir, ddir=dir, force= 1,158 compileall.compile_dir(dir=dir, ddir=dir, force=0, 159 159 quiet=report_problem) 160 160 except:
Note: See TracChangeset
for help on using the changeset viewer.