Ignore:
Timestamp:
Apr 14, 2011 2:10:04 PM (14 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:
e9875db
Parents:
0cf97c5
Message:

smearer option disabled before set_data

File:
1 edited

Legend:

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

    r0cf97c5 r0f8f831  
    305305                self.slit_smearer.Disable()    
    306306                #self.enable_smearer.Disable()  
     307            if self.data == None: 
     308                self.slit_smearer.Disable()  
     309                self.pinhole_smearer.Disable()  
     310                self.enable_smearer.Disable()  
    307311        else: self._show_smear_sizer() 
    308312        boxsizer_range.Add(self.sizer_set_masking) 
     
    15701574            self._set_smear(data) 
    15711575            # more disables for 2D 
    1572             if self.data.__class__.__name__ =="Data2D": 
     1576            if self.data.__class__.__name__ =="Data2D":    
    15731577                self.slit_smearer.Disable() 
    15741578                self.default_mask = copy.deepcopy(self.data.mask) 
    1575                  
     1579            else: 
     1580                self.slit_smearer.Enable(True)  
     1581                self.pinhole_smearer.Enable(True)       
    15761582                 
    15771583            self.formfactorbox.Enable() 
Note: See TracChangeset for help on using the changeset viewer.