Changeset 847091f in sasview


Ignore:
Timestamp:
Apr 16, 2009 12:01:36 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
3370922
Parents:
997131a
Message:

disabling smearing for data with no smearing info

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitpage.py

    r997131a r847091f  
    5050        if self.data !=None: 
    5151            self.smearer = smear_selection( self.data ) 
    52              
     52            if self.smearer ==None: 
     53                self.enable_smearer.Disable() 
     54                self.disable_smearer.Disable() 
     55                 
    5356        ## to update the panel according to the fit engine type selected 
    5457        self.Bind(EVT_FITTER_TYPE,self._on_engine_change) 
     
    602605         
    603606         
    604        
    605607    def onSmear(self, event): 
    606608        """ 
     
    631633        ## save the state enable smearing 
    632634        self.save_current_state() 
     635          
     636    
    633637         
    634638   
  • sansview/perspectives/fitting/fitting.py

    r997131a r847091f  
    825825            Update the output of plotting model 1D 
    826826        """ 
    827         self.calc_thread.ready(1) 
     827        wx.PostEvent(self.parent, StatusEvent(status="Plot \ 
     828        #updating ... ",type="update")) 
     829        self.calc_thread.ready(0.01) 
    828830     
    829831    def _fill_default_model2D(self, theory, qmax,qstep, qmin=None): 
     
    907909            Complete plotting 1D data 
    908910        """  
     911        
    909912        try: 
    910913             
     
    931934                wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 
    932935                             title= str(title))) 
    933              
     936            msg = "Plot 1D  complete !" 
     937            wx.PostEvent( self.parent, StatusEvent( status= msg , type="stop" )) 
    934938        except: 
    935939            msg= " Error occurred when drawing %s Model 1D: "%new_plot.name 
    936940            msg+= " %s"%sys.exc_value 
    937             wx.PostEvent( self.parent, StatusEvent(status= msg )) 
     941            wx.PostEvent( self.parent, StatusEvent(status= msg, type="stop" )) 
    938942            return   
    939943         
     
    955959            that can be plot. 
    956960        """ 
    957         msg = "Calc complete !" 
    958         wx.PostEvent( self.parent, StatusEvent( status= msg , type="stop" )) 
     961       
    959962     
    960963        err_image = numpy.zeros(numpy.shape(image)) 
     
    983986        wx.PostEvent(self.parent, NewPlotEvent(plot=theory, 
    984987                         title="Analytical model 2D ", reset=True )) 
     988        msg = "Plot 2D complete !" 
     989        wx.PostEvent( self.parent, StatusEvent( status= msg , type="stop" )) 
    985990          
    986991    def _on_data_error(self, event): 
Note: See TracChangeset for help on using the changeset viewer.