Changeset fcd8887d in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Jan 26, 2010 5:37:49 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:
25e3fc9
Parents:
ffa69b6
Message:

allow proper update of data2D

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    rffa69b6 rfcd8887d  
    13431343            
    13441344        self.structurebox = wx.ComboBox(self, -1,style=wx.CB_READONLY) 
     1345         
     1346        self.initialize_combox() 
     1347              
    13451348        wx.EVT_COMBOBOX(self.formfactorbox,-1, self._on_select_model) 
    13461349        wx.EVT_COMBOBOX(self.structurebox,-1, self._on_select_model) 
    13471350         
    13481351        
    1349         self.initialize_combox() 
    1350               
    13511352        ## check model type to show sizer 
    13521353        if self.model !=None: 
  • sansview/perspectives/fitting/fitpage.py

    rffa69b6 rfcd8887d  
    654654                ## error occured on chisqr computation 
    655655                pass 
    656             if self.data is not None: 
     656            if self.data is not None and self.data.__class__.__name__ !="Data2D": 
    657657                ## set smearing value whether or not the data contain the smearing info 
    658658                self.manager.set_smearer(smearer=temp_smear, qmin= float(self.qmin_x), 
    659659                                     qmax= float(self.qmax_x))  
     660            
    660661            evt = ModelEventbox(model=self.model) 
    661662            wx.PostEvent(self.event_owner, evt)   
Note: See TracChangeset for help on using the changeset viewer.