Changeset 2a0f33f in sasview for src/sas/sasgui/perspectives/fitting
- Timestamp:
- Jun 20, 2017 2:01:33 PM (7 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 00f7ff1
- Parents:
- 78312f7
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
r78312f7 r2a0f33f 23 23 from sas.sascalc.dataloader.data_info import Detector 24 24 from sas.sascalc.dataloader.data_info import Source 25 from sas.sascalc.fit.pagestate import PageState 25 26 26 27 from sas.sasgui.guiframe.panel_base import PanelBase … … 37 38 from sas.sasgui.guiframe.documentation_window import DocumentationWindow 38 39 39 from sas.sasgui.perspectives.fitting.pagestate import PageState40 40 from sas.sasgui.perspectives.fitting.report_dialog import ReportDialog 41 41 -
src/sas/sasgui/perspectives/fitting/fitting.py
ra534432 r2a0f33f 24 24 25 25 from sas.sascalc.dataloader.loader import Loader 26 from sas.sascalc.fit.BumpsFitting import BumpsFit as Fit 27 from sas.sascalc.fit.pagestate import Reader 28 26 29 from sas.sasgui.guiframe.dataFitting import Data2D 27 30 from sas.sasgui.guiframe.dataFitting import Data1D … … 34 37 from sas.sasgui.guiframe.plugin_base import PluginBase 35 38 from sas.sasgui.guiframe.data_processor import BatchCell 36 from sas.sascalc.fit.BumpsFitting import BumpsFit as Fit37 39 from sas.sasgui.perspectives.fitting.console import ConsoleUpdate 38 40 from sas.sasgui.perspectives.fitting.fitproblem import FitProblemDictionary … … 361 363 'Add a new model function') 362 364 wx.EVT_MENU(owner, wx_id, self.make_new_model) 363 365 364 366 wx_id = wx.NewId() 365 367 self.edit_model_menu.Append(wx_id, 'Sum|Multi(p1, p2)', … … 383 385 '(Re)Load all models present in user plugin_models folder') 384 386 wx.EVT_MENU(owner, wx_id, self.load_plugin_models) 385 387 386 388 def set_edit_menu_helper(self, owner=None, menu=None): 387 389 """ … … 1734 1736 @param unsmeared_error: data error, rescaled to unsmeared model 1735 1737 """ 1736 1737 number_finite = np.count_nonzero(np.isfinite(y)) 1738 1739 number_finite = np.count_nonzero(np.isfinite(y)) 1738 1740 np.nan_to_num(y) 1739 1741 new_plot = self.create_theory_1D(x, y, page_id, model, data, state, … … 1794 1796 msg = "Computing Error: Model did not return any finite value." 1795 1797 wx.PostEvent(self.parent, StatusEvent(status = msg, info="error")) 1796 else: 1798 else: 1797 1799 msg = "Computation completed!" 1798 1800 if number_finite != y.size: … … 1824 1826 that can be plot. 1825 1827 """ 1826 number_finite = np.count_nonzero(np.isfinite(image)) 1828 number_finite = np.count_nonzero(np.isfinite(image)) 1827 1829 np.nan_to_num(image) 1828 1830 new_plot = Data2D(image=image, err_image=data.err_data) … … 1927 1929 ## and may be the cause of other noted instabilities 1928 1930 ## 1929 ## -PDB August 12, 2014 1931 ## -PDB August 12, 2014 1930 1932 while self.calc_2D.isrunning(): 1931 1933 time.sleep(0.1) … … 1969 1971 if (self.calc_1D is not None) and self.calc_1D.isrunning(): 1970 1972 self.calc_1D.stop() 1971 ## stop just raises the flag -- the thread is supposed to 1973 ## stop just raises the flag -- the thread is supposed to 1972 1974 ## then kill itself but cannot. Paul Kienzle came up with 1973 1975 ## this fix to prevent threads from stepping on each other … … 1981 1983 ## a request to stop the computation. 1982 1984 ## It seems thus that the whole thread approach used here 1983 ## May need rethinking 1985 ## May need rethinking 1984 1986 ## 1985 1987 ## -PDB August 12, 2014 … … 2146 2148 residuals.dxw = None 2147 2149 residuals.ytransform = 'y' 2148 # For latter scale changes 2150 # For latter scale changes 2149 2151 residuals.xaxis('\\rm{Q} ', 'A^{-1}') 2150 2152 residuals.yaxis('\\rm{Residuals} ', 'normalized')
Note: See TracChangeset
for help on using the changeset viewer.