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

File:
1 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   
Note: See TracChangeset for help on using the changeset viewer.