Changeset a5f6748 in sasview
- Timestamp:
- Apr 27, 2012 1:22:39 PM (13 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- abba643
- Parents:
- 3184d964
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitting.py
re1bc51d ra5f6748 1453 1453 fitproblem = self.page_finder[pid][data.id] 1454 1454 qmin, qmax = fitproblem.get_range() 1455 plot_result = True1456 if correct_result and plot_result:1455 plot_result = False 1456 if correct_result: 1457 1457 if not is_data2d: 1458 1458 self._complete1D(x=data.x, y=res.theory, page_id=pid, … … 1462 1462 toggle_mode_on=False, state=None, 1463 1463 data=data, update_chisqr=False, 1464 source='fit' )1464 source='fit', plot_result = plot_result) 1465 1465 else: 1466 1466 self._complete2D(image=new_theory, data=data, … … 1472 1472 toggle_mode_on=False, state=None, 1473 1473 update_chisqr=False, 1474 source='fit' )1474 source='fit', plot_result = plot_result) 1475 1475 self.on_set_batch_result(page_id=pid, 1476 1476 fid=data.id, … … 1770 1770 weight=None, fid=None, 1771 1771 toggle_mode_on=False, state=None, 1772 data=None, update_chisqr=True, source='model'): 1772 data=None, update_chisqr=True, 1773 source='model', plot_result=True): 1773 1774 """ 1774 1775 Complete plotting 1D data … … 1813 1814 wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 1814 1815 title=str(title))) 1815 el se:1816 elif plot_result: 1816 1817 top_data_id = self.fit_panel.get_page_by_id(page_id).data.id 1817 1818 if data.id == top_data_id: … … 1858 1859 def _complete2D(self, image, data, model, page_id, elapsed, index, qmin, 1859 1860 qmax, fid=None, weight=None, toggle_mode_on=False, state=None, 1860 update_chisqr=True, source='model' ):1861 update_chisqr=True, source='model', plot_result=True): 1861 1862 """ 1862 1863 Complete get the result of modelthread and create model 2D … … 1903 1904 title = new_plot.title 1904 1905 batch_on = self.fit_panel.get_page_by_id(page_id).batch_on 1905 if not source == 'fit' :1906 if not source == 'fit' and plot_result: 1906 1907 wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 1907 1908 title=title))
Note: See TracChangeset
for help on using the changeset viewer.