Changeset a5f6748 in sasview


Ignore:
Timestamp:
Apr 27, 2012 1:22:39 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

no plot update on batchfit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/fitting.py

    re1bc51d ra5f6748  
    14531453                fitproblem = self.page_finder[pid][data.id] 
    14541454                qmin, qmax = fitproblem.get_range() 
    1455                 plot_result = True 
    1456                 if correct_result and plot_result: 
     1455                plot_result = False 
     1456                if correct_result: 
    14571457                    if not is_data2d: 
    14581458                        self._complete1D(x=data.x, y=res.theory, page_id=pid,  
     
    14621462                                     toggle_mode_on=False, state=None,  
    14631463                                     data=data, update_chisqr=False,  
    1464                                      source='fit') 
     1464                                     source='fit', plot_result = plot_result) 
    14651465                    else: 
    14661466                        self._complete2D(image=new_theory, data=data, 
     
    14721472                                      toggle_mode_on=False, state=None,  
    14731473                                     update_chisqr=False,  
    1474                                      source='fit') 
     1474                                     source='fit', plot_result = plot_result) 
    14751475                self.on_set_batch_result(page_id=pid,  
    14761476                                         fid=data.id,  
     
    17701770                    weight=None, fid=None, 
    17711771                    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): 
    17731774        """ 
    17741775        Complete plotting 1D data 
     
    18131814                wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 
    18141815                                            title=str(title))) 
    1815             else: 
     1816            elif plot_result: 
    18161817                top_data_id = self.fit_panel.get_page_by_id(page_id).data.id 
    18171818                if data.id == top_data_id: 
     
    18581859    def _complete2D(self, image, data, model, page_id,  elapsed, index, qmin, 
    18591860                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): 
    18611862        """ 
    18621863        Complete get the result of modelthread and create model 2D 
     
    19031904        title = new_plot.title 
    19041905        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: 
    19061907            wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 
    19071908                                               title=title)) 
Note: See TracChangeset for help on using the changeset viewer.