Ignore:
Timestamp:
Dec 17, 2010 5:26:52 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:
7342634
Parents:
0d8c8d7
Message:

fixed the edge problem in Q(pinhole) smearer

File:
1 edited

Legend:

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

    rd7b7156 rf867cd9  
    5656            self.structurebox.Disable() 
    5757        else: 
    58             self.smearer = smear_selection(self.data) 
     58            self.smearer = smear_selection(self.data, self.model) 
    5959            if self.smearer ==None: 
    6060                self.enable_smearer.Disable() 
     
    340340         
    341341        # get smear_selection 
    342         self.current_smearer= smear_selection( self.data ) 
     342        self.current_smearer= smear_selection( self.data, self.model ) 
    343343 
    344344        # Show only the relevant smear messages, etc 
     
    874874       
    875875        if self.model != None: 
     876            temp_smear= None 
     877            self.onSmear(None) 
     878            self.smearer.set_model(self.model) 
    876879            try: 
    877                 temp_smear= None 
     880                 
    878881                if self.enable_smearer.GetValue(): 
    879882                    temp_smear= self.smearer 
     
    13631366            self.structurebox.Disable() 
    13641367        else: 
    1365             self.smearer = smear_selection( self.data ) 
     1368            self.smearer = smear_selection(self.data, self.model) 
    13661369            self.disable_smearer.SetValue(True) 
    13671370            if self.smearer == None: 
     
    17611764                if self._is_2D(): data.dqy_data[data.dqy_data==0] = self.dx_max 
    17621765                else: data.dx[data.dx==0] = self.dx_max           
    1763             self.current_smearer = smear_selection(data) 
     1766            self.current_smearer = smear_selection(data, self.model) 
    17641767            # 2D need to set accuracy 
    17651768            if self._is_2D():  
     
    19401943                self.smear_slit_width.SetBackgroundColour(wx.WHITE) 
    19411944               
    1942         self.current_smearer = smear_selection(data) 
     1945        self.current_smearer = smear_selection(data, self.model) 
    19431946        #temp_smearer = self.current_smearer 
    19441947        ## set smearing value whether or not the data contain the smearing info 
     
    20012004        data = copy.deepcopy(self.data) 
    20022005        # make sure once more if it is smearer 
    2003         self.current_smearer = smear_selection(data) 
     2006        self.current_smearer = smear_selection(data, self.model) 
    20042007         
    20052008        if self.enable_smearer.GetValue(): 
Note: See TracChangeset for help on using the changeset viewer.