Ignore:
Timestamp:
Apr 27, 2015 6:30:36 PM (10 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
5265420
Parents:
373d4ee
Message:

Don't need to model to set resolution function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/fitting/fitpage.py

    r373d4ee r3cd840f  
    21832183 
    21842184        """ 
    2185         if self.model == None: 
    2186             self.disable_smearer.SetValue(True) 
    2187             if event == None: 
    2188                 return 
    2189             msg = "Please select a Model first..." 
    2190             wx.MessageBox(msg, 'Info') 
    2191             wx.PostEvent(self._manager.parent, 
    2192                          StatusEvent(status="Smear: %s" % msg)) 
    2193             return 
    21942185        # Need update param values 
    21952186        self._update_paramv_on_fit() 
     
    23652356        are compute when fitting 
    23662357        """ 
    2367         if self.model == None: 
    2368             self.disable_smearer.SetValue(True) 
    2369             if event == None: 
    2370                 return 
    2371             msg = "Please select a Model first..." 
    2372             wx.MessageBox(msg, 'Info') 
    2373             wx.PostEvent(self._manager.parent, 
    2374                          StatusEvent(status="Smear: %s" % msg)) 
    2375             return 
    2376  
    23772358        # Need update param values 
    23782359        self._update_paramv_on_fit() 
     
    25392520            return 
    25402521 
    2541         if self.model == None: 
    2542             self.disable_smearer.SetValue(True) 
    2543             if event == None: 
    2544                 return 
    2545             msg = "Please select a Model first..." 
    2546             wx.MessageBox(msg, 'Info') 
    2547             wx.PostEvent(self._manager.parent, 
    2548                          StatusEvent(status="Smear: %s" % msg)) 
    2549             return 
    25502522        # Need update param values 
    25512523        self._update_paramv_on_fit() 
Note: See TracChangeset for help on using the changeset viewer.